This is my first question in this group, maybe it is silly, but:

In Julia 2.1.0, comprehensions create new variable bindings on each 
iteration.
This is explained as a "new behavior" in this example:

https://github.com/JuliaLang/julia/blob/master/NEWS.md#new-language-features-1

But, in recent 0.3.0-rc1 the interpreter seems to return to the "old 
behavior":

julia> VERSION
v"0.3.0-rc1+61"

julia> map(f->f(), { ()->i for i=1:3 })
3-element Array{Any,1}:
 3
 3
 3

Is this a temporary regression and will be fixed, or the language 
definition was intentionally changed?
The stable release works as documented:

julia> VERSION
v"0.2.1"

julia> map(f->f(), { ()->i for i=1:3 })
3-element Array{Any,1}:
 1
 2
 3

Or have I misunderstood something?

Reply via email to