Hadi at JetBrains said that his 1.1.3 branch of hi...
# announcements
m
Hadi at JetBrains said that his 1.1.3 branch of his tutorial code was up to date with any deprecations, but only the first one produces any output here https://github.com/hhariri/oreilly-kotlin-course/blob/kotlin-1.1.3/intro/src/com/hadihariri/kotlincourse/basics/LoopsAndRanges.kt#L20-L26
g
What do you mean “the first one”?
Should print nothing on all Kotlin versions (at least >= 1.0)
Copy code
for (a in 100..1) {
   println(a)
}
o
you let that stop you?
g
Correct implementation of such loop is:
Copy code
for (a in 100 downTo 1) {
   println(a)
}
m
Ok, well I let it stop me because he explains that it's supposed to return the same thing and that his code is up to date, but the docs say its an empty range. I am trying to clear up if Hadi from JB is correct or the docs are 😕
o
move on bro, come back to it later
b
@mfiano It shouldn't return nothing, its probably a misunderstanding or maybe an errata in the course
m
Hmm
b
Pinging @hhariri in case he wants to review it