Something Go and Scala syntax
Peter Alexander
peter.alexander.au at gmail.com
Thu Dec 30 03:34:49 PST 2010
On 30/12/10 10:55 AM, bearophile wrote:
> So using "val" (abbreviation for "value") as in Scala seems better to me:
I agree that writing immutable all the time is tedious, but val is far
too vague. It does not suggest that the value is immutable at all.
> An alternative is to use Go syntax, and use the Pascal-like ":=" to denote a value assignment (function signature can't use := ).
> Here there is another idea from Go syntax: if the "then" clause of the "if" uses {} then the () around the test can be omitted:
Maybe I'm missing something, but what problem is this solving?
More information about the Digitalmars-d
mailing list