What is the stance on partial initializers when declaring
Timon Gehr
timon.gehr at gmx.ch
Fri Jul 22 10:40:40 PDT 2011
bearophile wrote:
> In Scala associative arrays look good enough and they are fully in the
> library. There is just a -> built-in syntax to define 2-tuples, used to
> create AA literals.
Actually -> is not built-in, but in the library too.
As a consequence, -> has the same precedence as + and -.
1*1 -> 2*2 works, but 1+1 -> (2+2) requires parentheses.
Cheers,
-Timon
More information about the Digitalmars-d
mailing list