I've been writing a few for loops in Julia and seen a few behaviours that
were surprising to me:
Firstly, it seems that using `in` is converted to `=` at some point in the
parser. This caught me out when looking at a macro that expanded to a for
loop.
julia> quote for x in y print(x)
Thanks for the response.
> It's both less bad and weirder than that. Integers are iterable.
Cripes! I've found the relevant mailing list thread you mentioned:
https://groups.google.com/forum/#!msg/julia-users/bNDcBnF5hd0/q2GL2UtbmVIJ
. Stefan mentions this decision could be revisited, so I'm h
Sorry, 'cripes' was just me saying that it surprised me. Let me attempt to
make the case for change.
The suitability of the any language feature depends on how well it stacks
up to Julia's goals. I think consistency, orthogonality, and finding errors
early are good goals, b