Nat Pryce pointed out these gems: Scala Reference 6.12.3 Precedence: “The precedence of an infix operator is determined by the operator’s first character.” Associativity “The associativity of an operator is determined by the operator’s last character” This actually made me cry.
Wat? Scala
As I got quoted recently in “Scala — 1★ Would Not Program Again” I though I finally should write up a little Wat moment we had recently: So does anyone know “wat” the following Scala code returns? (Value and Type) List(1,2,3).toSet() A Set<Int> containing 1,2,3? Nope how about I give you a clue, there are […]