Hullaballoonatic
05/05/2019, 1:11 AM3..0 // 3, 2, 1, 0
?ilya.gorbunov
05/05/2019, 1:55 AM0..indexOf(substring)
. If the substring is missing, getting an empty range would be more predictable than getting a range going from zero to -1.Hullaballoonatic
05/05/2019, 1:56 AMHullaballoonatic
05/05/2019, 1:57 AM...
be added?Hullaballoonatic
05/05/2019, 1:57 AM:
ilya.gorbunov
05/05/2019, 1:57 AM3..0
— it's unlikely, but maybe you could find another syntactic option for that feature.Hullaballoonatic
05/05/2019, 1:58 AM-1
if it finds nothing instead of null
. The latter would play so much better with kotlin's null safety.ilya.gorbunov
05/05/2019, 1:59 AMHullaballoonatic
05/05/2019, 1:59 AMHullaballoonatic
05/05/2019, 1:59 AMgildor
05/05/2019, 2:10 AM3 downTo 0
?
Maybe I just do not use ranges often to wish separate operator, but all set of range infix functions works really well for me, also it much more easy to understand especially for new comers than full set of range operators imoHullaballoonatic
05/05/2019, 2:11 AMHullaballoonatic
05/05/2019, 2:11 AMgildor
05/05/2019, 2:11 AMgildor
05/05/2019, 2:12 AMlouiscad
05/05/2019, 3:25 AMdownTo
has the benefit of being explicit, and we know that ..
is always an incrementing range