const as default for variables
Almighty Bob via Digitalmars-d
digitalmars-d at puremagic.com
Sat Mar 14 15:23:34 PDT 2015
On Saturday, 14 March 2015 at 20:15:30 UTC, Walter Bright wrote:
> I've often thought, as do many others here, that immutability
> should be the default for variables.
There should be "constants" and "variables" but no such thing
as...
a constant variable or
an immutable variable.
It's either constant/immutable or it's variable, it cant be both.
More information about the Digitalmars-d
mailing list