why remove octal literal support?
Steven Schveighoffer
schveiguy at gmail.com
Fri Nov 3 15:34:37 UTC 2023
On Friday, 3 November 2023 at 15:07:41 UTC, d007 wrote:
> dlang is know for compile speed, but in reality d project
> compile slow because so much ctfe and tempalte.
>
>
> Why bring more ctfe call by remmove octal literal ?
octal literals are extremely error prone, because people
sometimes use leading zeroes for alignment, not realizing that it
means the number is completely different.
Actual correct octal literal use is vanishingly small. Banning
C-style octal literals just makes it so the compiler flags
unintended errors like this.
-Steve
More information about the Digitalmars-d-learn
mailing list