not at all. I’m arguing that ..
looks like magic but does no magic things so why have it? Specifically in for loop case.
This is about for loop not range expression.
So why have for loop in language? Only reason I can see is to prevent trolls from saying ‘$lang does not even. No for loop for you.
’
In C/Java for loop is specific case of while loop that encapsulates most common iteration pattern and I guess was just inherited from algol like languages.
And what is the reason for it in kotlin?