Because `for i = 1:10` is pretty clear but `for i = v` looks like it's assigning `v` to `i` rather than assigning each value in `v` to `i`. The recommended practice is to use `=` when the RHS is a range and `in` when the RHS is a value.
On Sat, Jun 4, 2016 at 12:25 PM, Ford Ox <[email protected]> wrote: > If for i=1:10 is less verbose than for i in 1:10, why do we keep the > second version around? >
