meaning in their definition, not as a min(max()) s...
# announcements
h
meaning in their definition, not as a min(max()) set method
e
require(x in 1..10)
?
h
i wanna make a library that allows the defining numbers constrained to ranges via mathematical notation, e.g.
val x: Int in [0,3.5) = 2
or something
why does cpp allow for
1 <= foo < 42
but java doesn't? why doesn't java use cpp's
**
power operator? i'd love those in kotlin. Or rather am I unaware of a use kotlin has for
^
and thus why it doesn't just use that as a power operator?
i also really wish the ceiling and floor brackets from math notation existed on keyboards readily and were operator functions in kotlin 😛
e
Aren’t you confusing cpp with Python?
k
^
is xor in Java, so better use
**
for power like python.
âž• 1
h
cpp uses ** too, right?
k
I don't think cpp has one either.