Regarding the proposed Binray Literals Deprecation

Steven Schveighoffer schveiguy at gmail.com
Sat Sep 10 19:00:01 UTC 2022


On 9/10/22 1:43 PM, Walter Bright wrote:
> On 9/10/2022 9:18 AM, Timon Gehr wrote:

>> Binary literals are e.g., a GNU C extension and they are in C++14, so 
>> clearly people see an use for them.
> 
> I implemented them back in the 80s as an extension, and nobody commented 
> on them. I never found a use. As for seeing a use, seeing a use for them 
> and actually using them are different things.

I just used them a couple months ago:

https://github.com/schveiguy/poker/blob/master/source/poker/hand.d#L261

This was so much easier to comprehend than the equivalent hex.

-Steve


More information about the Digitalmars-d mailing list