The stately := operator feature proposal

Steven Schveighoffer schveiguy at yahoo.com
Thu May 30 15:29:19 PDT 2013


On Thu, 30 May 2013 18:14:18 -0400, MrzlganeE <bulletproofchest at gmail.com>  
wrote:

>> Not a bad idea. But why not go a step further, and make:
>>
>>    x := value;
>>
>> the equivalent of:
>>
>>    const x := value;
>>
>> ?
>
>
> This one is really hard for me to offer input on:
>
> I could get a lot done with the const version.
>
> I could agree with you for multiple reasons I think,
> - const x := 1; still works, yet it's redundant with the = operator.

I think Walter meant:

const x = value;

-Steve


More information about the Digitalmars-d mailing list