const sucks
Sean Kelly
sean at invisibleduck.org
Mon Oct 20 12:53:13 PDT 2008
Bill Baxter wrote:
>
> I recall Walter's main argument against it was that local variable
> really shouldn't be const-by-default since you're usually creating
> them because you want to manipulate them. But then you end up with a
> system where local variable declarations and parameter declarations
> follow very different rules.
Pure functions already work this way, so perhaps this isn't a big deal.
Sean
More information about the Digitalmars-d
mailing list