Regarding the proposed Binray Literals Deprecation

Adam D Ruppe destructionator at gmail.com
Fri Sep 9 23:53:23 UTC 2022


On Friday, 9 September 2022 at 23:43:49 UTC, Dave P. wrote:
> They’re only practical for small numbers and at that point just 
> learning what the small hex literals are in binary is not a big 
> deal.

The nice thing is D lets you group the bits withunderscores.

So you might do like 0b11_111_101_001 which makes it a lot easier 
to manage and you can group something like a flags register the 
same way it appears in the documentation.


More information about the Digitalmars-d mailing list