Re:The C++14 Standard: What You Need to Know
by repsilat on Wednesday September 17, 2014 @02:19PM
(#8331488)
Nice, it fits well with the "adjacent strings are automatically concatenated by the compiler" rule, too.
Re:The C++14 Standard: What You Need to Know
by detrino on Wednesday September 17, 2014 @12:40PM
(#8330868)
Have you considered if this would fit with C++'s grammar?
Re:The C++14 Standard: What You Need to Know
by Pxtl on Wednesday September 17, 2014 @04:27PM
(#8332193)
Briefly, but I think there are like three people in the world that fully grok C++ grammar, and I'm definitely not one of them. I just know that C++ generally has some kind of infix operator or delimiter between pairs of immediate data or variables, I'm pretty sure it's currently just a compiler error in every case.
Re:The C++14 Standard: What You Need to Know
by nightcracker on Wednesday September 17, 2014 @06:46PM
(#8332781)
Except this is not C++ grammar, this is simple lexical analysis. And separating by spaces would work fine.
So instead of 1,234.56789 (English) or 1.234,56789 (French) we do 1 234.56789 (international)
[0-9]+ [0-9]+ has no meaning in C++, so using space for magnitude decorations would have worked.