|
|
|
|
|
by tikhonj
4852 days ago
|
|
In a well-designed, flexible language (which includes Scala), operators are not a special case. In fact, in Scala, they are just methods, so there's no arbitrary line between the two! I personally like the Haskell/OCaml approach of having operators just be normal functions that happen to be parsed in infix position. It's simple, elegant, uniform and flexible. Either way, the core idea is that operators should be nothing special. |
|