Regarding the proposed Binray Literals Deprecation

Adam D Ruppe destructionator at gmail.com
Fri Sep 9 20:54:08 UTC 2022


On Friday, 9 September 2022 at 20:35:49 UTC, Steven Schveighoffer 
wrote:
> Deprecating 0-leading literals to mean octal is and will always 
> be a success.

Well, yeah, that was a silly syntax. I don't know what the C 
designers were thinking with that.

But using 0o solves all those problems.

> It runs a simple parser at CTFE which isn't nearly as cheap as 
> the octal parser in the compiler.

Well it isn't like the cheapness really matters tbh since it is a 
small job. And it is a kinda cool technique that D can do it. I 
use it in other places too.

Just compared to the 0x and 0b and a prospective 0o.... you're 
right, it is solidly meh.



More information about the Digitalmars-d mailing list