Using @sprintf inside a macro

I came up with this solution:

julia> macro myprintf(x,y...)
       :(print(now(),":",@sprintf($x,($(y...),)...)))
       end

after reading this post

But I don’t know why it works :rofl: