Something Go and Scala syntax

KennyTM~ kennytm at gmail.com
Thu Dec 30 12:10:31 PST 2010


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'.





More information about the Digitalmars-d mailing list