Regarding the proposed Binray Literals Deprecation

mw mingwu at gmail.com
Sat Sep 10 20:12:05 UTC 2022


On Saturday, 10 September 2022 at 19:56:14 UTC, Walter Bright 
wrote:
> On 9/10/2022 11:44 AM, mw wrote:
>> Second, why not provide the above "trivial parser" into std 
>> lib (so nobody need to reinvent the wheel)
>
> Indeed, why not! Want to give it a go?


Not me.

I'm fine with: (e.g. uint32)

0b0000_0110_0110_0110_0110_0110_0110_0110

I don't see any advantage of:

"...._.XX._.XX._.XX._.XX._.XX._.XX._.XX.”

over the binary literals, and it worth the effort.

And I don't think the latter is more readable than the former.


What I'm saying is that: if you insist on removing binary (I hope 
you not), then [why not provide ...] the migration tool.


More information about the Digitalmars-d mailing list