FunctionBarrier.jl

Author AStupidBear
Popularity
0 Stars
Updated Last
10 Months Ago
Started In
June 2020

FunctionBarrier

Build Status Build Status Coverage

Most of the code in this package is borrowed from FastClosures.jl.

Usage

a, b = 1, 2
@barrier begin
    c = a + b
    d = c + 1
    c, d
end

is equivalent to

a, b = 1, 2
function foo(a, b)
    c = a + b
    d = c + 1
    (c, d)
end
(c, d) = foo(a, b)