To be honest, I also thought the macro-style was preferred, if what you're 
doing is actually metaprogramming (like the @endpoint in the blog post). 
Here, I think a makefun-function as opposed to @makefun doesn't quite 
communicate the nature of makefun. Although, all of this can just be 
personal taste!

On Thursday, September 3, 2015 at 8:11:00 AM UTC+2, Joshua Ballanco wrote:
>
> Out of curiosity, why use `@eval` directly instead of defining a macro? 
> (I’m just trying to get a better feel for what’s more Julian.)
>
>
> On September 2, 2015 at 12:44:39, Patrick Kofod Mogensen (
> patrick....@gmail.com <javascript:>) wrote:
>
> I'm in a train right now, but yes. Look up metaprogramming in the docs, or 
> look at the blog entry on refactoring code in Twitter.jl 
> http://randyzwitch.com/julia-metaprogramming-refactoring 
> <http://www.google.com/url?q=http%3A%2F%2Frandyzwitch.com%2Fjulia-metaprogramming-refactoring&sa=D&sntz=1&usg=AFQjCNFSamixFPAs3ckI5qwS_KiTYwX4ng>
>
>

Reply via email to