Type stability in closures

function f(a, b)
    _f = (x, y) -> begin
        let c = x * y
            c
        end
    end
    c = _f(a, b)
    return c
end

… or …

function f(a, b)
    _f = (x, y) -> begin
        let c
            c = x * y
        end
    end
    c = _f(a, b)
    return c
end
2 Likes