'dflemstr' said:In scala, you can of course do things like "class lol { def #%&(that: Int) = whatever }" and introduce any operator. You can also make unary operators like "class lol { def unary_!!( that: Float) = foo }"...
It gives you a freedom unattainable in other languages.
I suspected that about Scala, but I wasn't sure. I guess it depends on what kind of freedom you like. I've never felt the need to introduce new operators, python's have been sufficient (and actually, even in other languages).
But having to change types or introduce new classes or other such nonsense to appease a compiler that knows nothing of my runtime has happened to me and I hate that.
No biggie, I don't mind delays
Last edited by a moderator: