https://kotlinlang.org logo
#codereview
Title
# codereview
b

beholder

08/26/2018, 6:19 PM
It is a good idea?
Copy code
@Suppress("NOTHING_TO_INLINE")
inline infix fun Int.hasBits(bits: Int): Boolean = (this and bits) != 0
How would you name it?
d

dave08

08/27/2018, 2:18 AM
Any reason you didn't use infix @louiscad?
l

louiscad

08/27/2018, 6:37 AM
@dave08 Less readable IMHO, the dot syntax is good enough
3 Views