# KotlinConf'23 talk explains Kotlin range operators and the new rangeUntil operator

DevFeed: [KotlinConf'23 talk explains Kotlin range operators and the new rangeUntil operator](<https://devfeed.tech/articles/kotlinconf-23-why-code-autocompletion-works-faster-on-weekends-by-egor-tolstoy-27029.md>)

Original publisher: [Read original article](<https://appmattus.medium.com/kotlinconf23-why-code-autocompletion-works-faster-on-weekends-by-egor-tolstoy-bade67a21742?source=rss-be40b368c57e------2>)

Author: Matthew Dolan

Published: 2023-05-19T18:23:58Z

Content type: opinion

Language: en

Sources: [Stories by Matthew Dolan on Medium](<https://devfeed.tech/sources/stories-by-matthew-dolan-on-medium.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [code](<https://devfeed.tech/tags/code.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [talk](<https://devfeed.tech/tags/talk.md>)

## AI overview

A recap of Egor Tolstoy's KotlinConf'23 lightning talk about Kotlin range operators. It explains the difference between closed and open ranges and notes that the new rangeUntil operator, ..<, was expected to become stable in Kotlin 1.9.0.

## Source excerpt

KotlinConf'23 -- Why code autocompletion works faster on weekends by Egor Tolstoyhttps://medium.com/media/2cb46188f14599c237dded7d4dcb3af9/href Egor Tolstoy, recently delivered an intriguing lightning talk about the work he does as a product manager on Kotlin. As an example, he touched on the subject of range operators, .. and until, in the language and as part of the journey showed some interesting stats of their use. Of course, as highlighted, when we see the use of the range operators is it clear what they mean? For instance, what do each of these lines print? println((1..4).toList()) println((1 until 4).toList()) The answer to the above is: [1, 2, 3, 4] // 1..4 is a closed range so end is inclusive [1, 2, 3] // 1 until 4 is an open range so end is exclusive The talk nicely emphasised the usefulness of testing peoples understanding of Kotlin code to drive how the language evolves, with the outcome of the above leading to the introduction of the new rangeUntil operator, ..<, which will become stable in Kotlin 1.9.0. 1..4 // 1, 2, 3, 4 1..<4 // 1, 2, 3 Of course that leaves one final question, why does code autocompletion work faster at the weekends? Because developers typically work on smaller personal projects at weekends. You can find my thoughts on more KotlinConf'23 talks at KotlinConf'23. Please let me know your thoughts. Join medium to read all of my articles or subscribe for e-mail updates.