Most of the code in this package is borrowed from FastClosures.jl.
a, b = 1, 2
@barrier begin
c = a + b
d = c + 1
c, d
endis equivalent to
a, b = 1, 2
function foo(a, b)
c = a + b
d = c + 1
(c, d)
end
(c, d) = foo(a, b)Most of the code in this package is borrowed from FastClosures.jl.
a, b = 1, 2
@barrier begin
c = a + b
d = c + 1
c, d
endis equivalent to
a, b = 1, 2
function foo(a, b)
c = a + b
d = c + 1
(c, d)
end
(c, d) = foo(a, b)