3 ms·
> here are annoying off-by-one errors These barely if ever happen for simple iterations, it's an idee fixe. Off-by-one sneak in when trying to do something spe
by trgn 9mo ago
> here are annoying off-by-one errors
These barely if ever happen for simple iterations, it's an idee fixe. Off-by-one sneak in when trying to do something special, and then a for-on loop is useless anyway.
> Symbol.iterator interface
I get it, but it's unnecessary abstraction to overgeneralize a vanilla array to an iterable.
anyway, for..of is not an issue, it's alright. I think if there's one main point i'm trying to make, is that devs will write objectively worse code base on gut wants (in this case, obsession to use higer level abstractions to iterate over an array).