Y
Hacker News
new
|
ask
|
show
|
jobs
by
drdaeman
4289 days ago
User-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?
2 comments
jeorgun
4289 days ago
Hexadecimal numbers, probably. 0x001_f05 would be ambiguous.
link
AnimalMuppet
4289 days ago
I don't think that's it. 0x001_f05 starts with 0, which is still not something an identifier can do.
link
plorkyeran
4289 days ago
0x001_f05 could be a UDL named f05 which should be passed 0x001.
link
AnimalMuppet
4289 days ago
Oh. UDLs are a new one to me. I didn't know that was in the language.
I stand corrected.
link
nightcracker
4288 days ago
Where do you get this information from, because it's entirely incorrect.
link