Something Go and Scala syntax

Stanislav Blinov stanislav.blinov at gmail.com
Thu Dec 30 14:35:06 PST 2010


On 12/30/2010 11:10 PM, KennyTM~ wrote:
> On Dec 30, 10 20:23, Stanislav Blinov wrote:
>> 30.12.2010 15:05, bearophile пишет:
>>> Peter Alexander:
>>>
>>>> but val is far too vague. It does not suggest that the value is
>>>> immutable at all.
>>> In Scala you tag assignments with "val" or "var". "var" means
>>> variable, and "val" means value, it's not mutable. I agree that
>>> "immutable" is a bit more explicit than "val", but I think "val" is
>>> acceptable...
>>>
>>
>> What's wrong with "in"? It's even one character shorter.
>>
>
> 'in' means 'const scope', not 'immutable'.

Oh, yeah, forgot that.


More information about the Digitalmars-d mailing list