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

Igor Tkachev it at rsdn.ru
Thu Mar 1 14:35:48 CET 2007


Hello Ivan,

I don't see any problem with 'var'. It will make Nemerle more
compatible with C# 3.0, which is good for developers who are going to
migrate from C# to N.




Thursday, March 1, 2007, 5:05:33 AM, you wrote:

> 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


> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en


-- 
Best regards,
 Igor                            mailto:it at rsdn.ru




More information about the devel-en mailing list