Tidy auto [Was: Re: @disable]
Walter Bright
newshound1 at digitalmars.com
Sun Jan 17 14:45:07 PST 2010
dsimcha wrote:
> Furthermore, I think that less verbosity encourages good practices. I've gotten
> into the habit of declaring all my stack variables immutable when writing a
> function, unless I really need them to be mutable. This makes code a lot easier
> to understand because, when I look at the function later and try to figure out how
> it works, I know right off the bat that only a small subset of the variables are
> ever modified after they're declared.
Andrei introduced me to that style, and I'm starting to use it more and
more. I like it for the reasons you state.
More information about the Digitalmars-d
mailing list