https://kotlinlang.org logo
Title
g

germangb

04/19/2017, 8:26 PM
Is there a reason why kotlin doesn't have "regular looking" bitwise operators? (&, |, ~, >>, <<), I find it pretty annoying...
e

elizarov

04/20/2017, 7:59 AM
There is a reason — to prevent their abuse via operator overloading (think C++ and Scala). They might still be added at some moment in the future, though.
e

eviltak

04/20/2017, 1:57 PM
It's unconventional, but I prefer it because ^
d

dean

04/21/2017, 8:59 AM
Would be cool if those operators had warnings if overloaded, or if overloading was not allowed on them (which would kinda suck for BigNumber implementations, though)