Re:Noulith: A new programming language by the current Advent...
by tialaramex on Wednesday December 14, 2022 @03:50PM
(#33990338)
Nomenclature is certainly not great, but the trouble as so often goes deeper. Bjarne has these "constants" and so he can't see any reason he'd need actual constants which are, you know, constant. If he recognised that he's got immutable variables, and not constants, then the need for actual constants is a little more obvious.
Re:Noulith: A new programming language by the current Advent...
by metadat on Wednesday December 14, 2022 @06:18PM
(#33992258)
What do you consider #define to be doing? Simple usage arguably provides a way to have actual constants.
Re:Noulith: A new programming language by the current Advent...
by unsafecast on Thursday December 15, 2022 @04:39AM
(#33997223)
But not runtime constants. I do agree with GP in that it would've been nice to have actual constant values, but it is what it is. The last thing C and C++ need is more features. C because we don't want to ruin it, and C++ because we want to slow the death.
Different people will have different breaking points about when things have been stretched too far, meaning they are not willing to compromise on. Working with people who have not the same level of flexibility or rigidity or differ in different contexts can be a day-to-day pain.