As generated functions are right now, if you have a type-variadic section 
of code, you have two options:

1) generate varying segments at the top, assign them to a variable and 
perform code insertion using $

This has obvious difficulties with readability.

2) create a variable, say "code" that holds the current, cumulative code, 
and append to that variable by doing something like:

code = quote
  $code
  #more code here
end

This adds a lot of boilerplate overhead.

I quickly wrote a macro system that reduces this to a single @code macro....

Don't know if anyone else would find this useful, but I'll take comments 
before pushing this to a package.

https://gist.github.com/ityonemo/65230126faddab4c6021

Isaac

Reply via email to