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.
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.