Let-in macro

You can do this instead, if you want y and z to be available outside, but not a and b:

begin
    local a = 1
    local b = 2
    y = a + b
    z = a - b
end
1 Like