Open darrylabbate opened 1 year ago
E.g.
for i in 10..0 { ... }
vs
for i in 10..0:-1 { ... }
This is mainly annoying with ranges built with variables - when either bound of the range causes the inferred direction to flip, it's unexpected and almost never intentional.
E.g.
vs
This is mainly annoying with ranges built with variables - when either bound of the range causes the inferred direction to flip, it's unexpected and almost never intentional.