Regarding the proposed Binray Literals Deprecation

Daniel N no at public.email
Tue Sep 13 20:03:52 UTC 2022


On Tuesday, 13 September 2022 at 19:56:22 UTC, Max Samukha wrote:
>
> My point has been restated multiple times in this thread by 
> several people: if the binary represents bit flags and is 
> grouped with a dash in nibbles, it is easier to read than a 
> hex. You count bits, not hex digits, and there is no need to 
> count more than 4.

You are right.

Furthermore complexity is not reduced by removing literals, 
consider if you use 5+ languages, and every language has it's own 
include to enable literals, then you need to remember 5 different 
includes. (std.conv really makes no sense what if you don't even 
use phobos?)


More information about the Digitalmars-d mailing list