I noticed this today
In [8]: for a = 1:3, b = 4:6
b == 5 && break
println("a = $a")
println("b = $b")
end
a = 1
b = 4
a = 2
b = 4
a = 3
b = 4
(i.e. the break only breaks the inner loop).
I'm not saying this is wrong, but it might be good to add a sentence or two about it in the docs as one might think that the nested loop syntax only creates a single loop to break from.
I noticed this today
(i.e. the break only breaks the inner loop).
I'm not saying this is wrong, but it might be good to add a sentence or two about it in the docs as one might think that the nested loop syntax only creates a single loop to break from.