Re:Kotlin – programming language targeting the JVM and JavaS...
by frowaway001 on Wednesday December 17, 2014 @07:03PM
(#8765262)
No. Scala has neither operator overloading nor any kind of rampant form of it.
[ Parent
| on HN ]
Re:Kotlin – programming language targeting the JVM and JavaS...
by vorg on Wednesday December 17, 2014 @08:04PM
(#8765476)
In Scala you can define stuff like <*/+-> to mean anything you want. Are you perhaps arguing over my choice of words to describe this phenomena?
Re:Kotlin – programming language targeting the JVM and JavaS...
by frowaway001 on Wednesday December 17, 2014 @08:07PM
(#8765492)
Yes. It's neither an operator nor are you overloading anything.
The whole point is that everything is just a bog-standard method and infix notation is a orthogonal notion, separate from a method's name.