https://github.com/JuliaLang/julia
Raw File
Tip revision: 51d6c156b4e22c947d729a61d0cba3fc65c416e0 authored by Daniel Karrasch on 10 May 2021, 11:20:35 UTC
more specific signature
Tip revision: 51d6c15
opaque_closure.jl
"""
    @opaque (args...) -> body

Marks a given closure as "opaque". Opaque closures capture the
world age of their creation (as opposed to their invocation).
This allows for more aggressive optimization of the capture
list, but trades off against the ability to inline opaque
closures at the call site, if their creation is not statically
visible.

!!! warning
    This interface is experimental and subject to change or removal without notice.
"""
macro opaque(ex)
    esc(Expr(:opaque_closure, ex))
end
back to top