The stately := operator feature proposal

bearophile bearophileHUGS at lycos.com
Thu May 30 15:06:23 PDT 2013


Walter Bright:

> Not a bad idea. But why not go a step further, and make:
>
>    x := value;
>
> the equivalent of:
>
>    const x := value;
>
> ?

Of course. But I think that syntax saves only a small amount of 
chars, and it adds a second obvious way to do one thing.

There is another syntax that's missing in D that I think is much 
more useful, and it allows to do something that currently has no 
good way to be done.

Bye,
bearophile


More information about the Digitalmars-d mailing list