4 ms·
Underscores are already being used for user defined literals.
by flebron 12y ago
Underscores are already being used for user defined literals.
- drdaeman 12y agoUser-defined literals can't generally start with a digit, so it should be perfectly fine to allow 1_000_000 syntax for 1000000. Or I'm forgetting something?
- jeorgun 12y agoHexadecimal numbers, probably. 0x001_f05 would be ambiguous.
- AnimalMuppet 12y agoI don't think that's it. 0x001_f05 starts with 0, which is still not something an identifier can do.
- plorkyeran 12y ago0x001_f05 could be a UDL named f05 which should be passed 0x001.
- AnimalMuppet 12y agoOh. UDLs are a new one to me. I didn't know that was in the language. I stand corrected.
- nightcracker 12y agoWhere do you get this information from, because it's entirely incorrect.