I just used this and it was quite nice. Instead of manually building up the 
expression you just @code everywhere you want to add a code piece.

Nice work :)

On Saturday, February 13, 2016 at 6:17:14 AM UTC+1, Isaac Yonemoto wrote:
>
> 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