Tidy auto [Was: Re: @disable]
Jerry Quinn
jlquinn at optonline.net
Mon Jan 18 14:05:37 PST 2010
bearophile Wrote:
> myself). If this is true then a syntax like:
> auto immutable x = y * 2;
>
> can be seen as too much long and boring to write all the time, so the "immutable" keyword may need to be changed again :-) For example into "val" (also as "retard" has said), so it becomes shorter (here "auto" is present if and only if the programmer wants type inference, as I have written in other posts, to clean up its semantics):
> auto val x = y * 2;
How about "fixed"? It's a little longer than val, but still carries "set in stone" semantics.
auto fixed x = y * 2;
More information about the Digitalmars-d
mailing list