Regarding the proposed Binray Literals Deprecation

Dave P. dave287091 at gmail.com
Fri Sep 9 23:43:49 UTC 2022


On Friday, 9 September 2022 at 18:20:56 UTC, H. S. Teoh wrote:
> On Fri, Sep 09, 2022 at 05:52:37PM +0000, Max Samukha via 
> Digitalmars-d wrote:
>> On Friday, 9 September 2022 at 16:55:18 UTC, Puneet Goel wrote:
>> > [...]
>
> I also oppose dropping binary literals. Although I don't use 
> them often, the few times I do need them I'm very glad they are 
> there. I consider it one of the niceties of D that C missed, 
> and would be rather disappointed if we dropped it. It would be 
> a pain to have to resort to a template just so I can use binary 
> literals.
>
>
> T

C23 is actually adding binary literals (and you could already use 
them with gcc and clang). Although I do agree with Walter about 
how they’re not very useful. 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.


More information about the Digitalmars-d mailing list