The stately := operator feature proposal

Walter Bright newshound2 at digitalmars.com
Thu May 30 13:50:56 PDT 2013


On 5/29/2013 5:19 PM, MrzlganeE wrote:
> In places where I write a bunch of short mathy code, I do not want to use
> 'auto'. The := operator would allow to declare a variable, deduce its type, and
> define its value.

Not a bad idea. But why not go a step further, and make:

    x := value;

the equivalent of:

    const x := value;

?


More information about the Digitalmars-d mailing list