fonsp / Pluto.jl

🎈 Simple reactive notebooks for Julia
https://plutojl.org/
MIT License
4.93k stars 284 forks source link

Reassignment inside let block depends on function wrapping #2710

Open fonsp opened 9 months ago

fonsp commented 9 months ago
image
# ╔═╡ 91084099-6515-4cfb-8f79-755bd54cd6b0
begin
    x = 1

    let
        # f() = 123
        x = 2
    end
    x
end

# ╔═╡ 14f79ed1-782c-4e1a-888c-7a5249cf9c66
begin
    xe = 1

    let
        f() = 123
        xe = 2
    end
    xe
end