The stately := operator feature proposal
monarch_dodra
monarchdodra at gmail.com
Fri May 31 13:31:32 PDT 2013
On Friday, 31 May 2013 at 16:38:48 UTC, Rob T wrote:
> The := syntax looks just like the += *= ~= syntax, which has
> completely different meanings, so for some people it will only
> serve to confuse them more than they already are.
>
> BTW D does have instances of multiple ways of doing the same
> things.
>
> Eg
>
> private:
> int x = 1;
>
> private int x = 1;
>
> private
> {
> int x = 1;
> }
>
> --rt
Yes, but these are *variations* of a common semantic.
You could also cite:
const i = 5;
const auto i = 5;
":=", on the other hand, is not a variation. It is something new
and out of the blue.
More information about the Digitalmars-d
mailing list