Poll: Would you like to try const-by-default or not?
Robert Fraser
fraserofthenight at gmail.com
Tue Jun 12 13:24:08 PDT 2007
Dan Wrote:
> Another option is to not allow a default, and make everyone explicitly define the storage class of their data; just like they have to specify the type explicitly.
>
> Once that's in order, letting "auto" handle both type and storage class automatically unless otherwise specified might work?
>
> Just my three pennies (inflation).
I don't like this idea at all. Both "default" ways would only break some existing code, this would break all existing code. In addition, it just seems needlessly verbose, and I'm sure I'm not the only one who hates having to type a pointless "var" in front variables in JavaScript or "my" in strict Perl (I know this would be for parameters, but it's the same general idea).
More information about the Digitalmars-d
mailing list