https://kotlinlang.org logo
#announcements
Title
# announcements
d

diesieben07

06/25/2017, 8:18 PM
&
becomes
and
,
|
becomes
or
and
<<
becomes
shl
. Bit manipulation is highly suboptimal in Kotlin at the moment, sadly.
d

dasz

06/26/2017, 10:25 AM
diesieben07: what you mean by "suboptimal" is there sth different implementation than Java does with bit operations?
d

diesieben07

06/26/2017, 10:29 AM
No, the produced class files are the same, the Kotlin functions map down to the raw bitwise operations. It's just not really nice in the code in my opinion.