I want to create a macro that takes the header foo(args) and body begin ... end and returns a macro version of it.
macro macwo(header::Expr, body::Expr)
#=
macro header
body
end
=#
end
# Implementation example
@macwo foo(a::Integer, b, c) begin
println(a + b + c)
end
@foo(1,2,3)
But I’m new to Julia and I can’t do it by reading Julia’s documentation.