Equalities comparison in local scopes

#1

Not sure the title captures it adequately, but something that came out of a recent Slack discussion:

a = "a"
@show a === "a" # true
for _ in 1:1
    @show a === "a" # false
    @show a .=== "a" # true
end

Is this intended behaviour? If so, what is the best way to make sense of it?

0 Likes

#2

No, that seems like a bug. Would you mind filing an issue?

2 Likes

#3

That’s now submitted here.

2 Likes