New scope solution

Is it possible to exclude let? It will be very useful for requesting a clean namespace and “plain” scoping rule. I know I can write

(function()
    x = 0
    for i in 1:10
        x += i
    end
    x
end)()

but it feels like I’m writing javascript.

1 Like