[nem-en] let's shorten mutable to mut

Ivan Lakhturov lakhturov at gmail.com
Thu Mar 1 11:05:33 CET 2007


hello Michal,

Thursday, March 1, 2007, 10:58:14 AM, you wrote:

> On 3/1/07, Ivan Lakhturov <lakhturov at gmail.com> wrote:
>> hello devel-en,
>>
>>       let's shorten mutable to mut.

> There was an idea to use 'var' for local variables (not sure about
> field modifiers, but it's probably not that important).

> We didn't do that because 1/ one can easily write a macro for that, 2/
> it makes you think whenever you use 'mutable' if it wouldn't be better
> to do things the functional way. I'm not so sure about 2/ now, though.

2/ we have a real hybrid: so i'd recommend to think twice:
   a/ mutable is long, however, used in 30%-70% of cases
   b/ indents - length(def) == length(mut) == length(var)
   c/ most of people are coming as imperative-only

regards, phantom




More information about the devel-en mailing list