I'm confused about where the need for macros comes in...

On Friday, January 17, 2014, James Fairbanks <[email protected]> wrote:

> So we can implement closures in Julia with a function definition that
> returns a function. And we can use macros to simplify repetitive tasks. How
> would one combine these to make a macro that defined a closure? My most
> common use case is a closure that needs an initialized variable and then
> behaves as a 1 argument function. Such as an accumulator:
>
> https://gist.github.com/jpfairbanks/8475467#file-closure-jl
>
> I suppose their are other|generalized ways to do this and I would like to
> know those too.
>
> -James
>

Reply via email to