I think that depends on what you mean. Here's an example of a "complex" macro
expansion that's just shorthand for a longer block of code.
macro foo()
quote
println("I'm the first line")
println("I'm the second line")
println("I'm the third and final line")
end
end
julia> @foo
I'm the first line
I'm the second line
I'm the third and final line
-- John
On Mar 14, 2014, at 10:09 AM, Yuuki Soho <[email protected]> wrote:
> Is it possible to do something like defining a piece of code, and then just
> insert it when needed ? Something like:
>
> @insertcodehere somecode
>
>
>