2 ms·
This seems to me to be far more useful than user-defined literals (the conflicting feature). At least, I can think of many programs where digit separators would
by alex-g 14y ago
This seems to me to be far more useful than user-defined literals (the conflicting feature). At least, I can think of many programs where digit separators would be nice - but for user-defined literals, I don't see them as providing much. We could already make invocations like "pixels(200)" and being able to say "200_pixels" doesn't add much to that, except complicating the parser.
- anonymouz 14y agoThe problem with this argument is that user-defined literals already exist in C++11, and use of the underscore character for a different purpose in a future standard has to be in such a way that it can be unambiguously distinguished from the user-defined literal usage. Backward-compatibility to the current standard has to be preserved.
- alex-g 14y agoOh, absolutely, I just think it's a shame.