Programming Languages on Crack

Walter Bright newshound2 at digitalmars.com
Thu Jun 17 10:21:53 UTC 2021


On 6/17/2021 2:13 AM, Dennis wrote:
> Nice post! Just one thing I don't understand:
> 
> On Thursday, 17 June 2021 at 02:02:58 UTC, Walter Bright wrote:
>> Consider the following controversial language features:
>> ...
>> 2. non-void default initialization
>> ...
>> 6. transitive const
>> ...
>> Ok, I have successfully sold (1) and (2). But
>> the others are all uphill struggles for D.
> 
> Are you trying to "sell" the idea that this list of features is bad? In that 
> case, are you saying D's `const` and default initialization of `T x = T.init;` 
> instead of `T x = void;` are bad? I get the other items on the list, but (2) and 
> (6) confuse me.

Yeah, I could have phrased that better. For 2, I'm referring to the C feature of 
no initializer means initialize to random garbage. For 6, I meant that people 
want to have "logical const", and so want a way out of transitive const.


More information about the Digitalmars-d mailing list