That's very impressive!  Having recently been trying to understand the 
intricacies of generated functions, this really does seem to improve 
ease-of-use and readability.  Kudos!

On Saturday, February 13, 2016 at 12:17:14 AM UTC-5, 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