News for hackers. Stuff that matters.
Re:Ask HN: Why can't I write a int literal like 2,333? by mailslot on Tuesday March 07, 2017 @04:30AM (#13809259)
In C++1y/C++14, you can use the apostrophe. i.e. 2'333

They took a backward compatible approach by using a symbol that's not already used for other operations, like "," or "." or ";" The grammar would be non-trivial or too restricted otherwise, IMO.

Re:Ask HN: Why can't I write a int literal like 2,333? by bengunnink on Tuesday March 07, 2017 @08:52AM (#13810281)
Recent Java versions did something similar, allowing underscore characters, e.g., 7_000_000.