const as default for variables

weaselcat via Digitalmars-d digitalmars-d at
Sat Mar 14 14:42:04 PDT 2015

On Saturday, 14 March 2015 at 21:18:33 UTC, Douglas Peterson 
> What would be the rationale for such a change ?

safety, the same reason @safe should be the default.
see: const correctness, virtually any ML-inspired language.

More information about the Digitalmars-d mailing list