https://kotlinlang.org logo
Title
i

ilya.gorbunov

07/22/2022, 6:00 PM
📣 Some time ago we have conducted a UX research that showed that Kotlin users may experience troubles identifying whether the ranges created with the
..
operator and
until
function have their upper bound excluded or included. Now we present the proposal intended to improve this situation by introducing the new
..<
(rangeUntil) operator to Kotlin. Please use KEEP-314 for the discussion.
🎉 6
s

sreich

07/22/2022, 7:43 PM
that's exciting. it isn't something i thought about wanting, but now that I see it, I quite like it. nice to see the language evolving. to be clear, would this impyl that ..< would be the new recommendations and
until
would be deprecated or warned on? or just an additional synonym?
i

ilya.gorbunov

07/22/2022, 9:24 PM
We plan to give a recommendation to use
..<
instead of
until
in IDEA without deprecating the latter for the time being
b

Brendan Campbell-hartzell

07/22/2022, 9:49 PM
Having very recently spent a bunch of time confusing myself with ranges, this is a very welcome addition!
j

janvladimirmostert

08/10/2022, 10:20 AM
I'm assuming the first feature requests after
..<
will be
>..
and
>..<
not that I can think of use-cases for them The IntelliJ type hints showing these when using
..
and
until
are already super useful