On Wed, May 29, 2019 at 5:40 PM Markus Fischer <mar...@fischer.name> wrote:
> Hi, > > On 29.05.19 09:49, Côme Chilliet wrote: > > What bugs me with this RFC is that it seems to be mainly intended for > grouping digits by 3, which from what I understand is cultural. > > At least some asian languages have a concept of > https://en.wikipedia.org/wiki/Myriad and group them by 4, at least from > the language point of view. > > It does seem when writing as numbers they still group by 3, but it seems > other usages exists: > > > https://japantoday.com/category/features/lifestyle/10-000-or-1-0000-japanese-schools-are-starting-to-move-commas-on-big-numbers-but-why > > My understanding from the RFC is that that the grouping is not relevant, > the `_` is stripped regardless. > > I would expected this all to work the same > > - 1_000_000 => 1000000 > - 100_0000 => 1000000 > - 1_0_0_0_0_0_0 => 1000000 > > It even gives similar examples with the hex variant: > > 0x42_72_6F_77_6E; // with separator > > Am I wrong? > Simply ignoring "_" in numeric literal is nicer (and a bit faster) especially for hex/octal/bit. Hex may be grouped by 2,4,8,16,32 and so on. Bit fields may be grouped by any length. Regards, P.S. Even if it's easier for us, we don't use 1,0000 normally at least today. -- Yasuo Ohgaki yohg...@ohgaki.net