On Tuesday, April 12, 2016 at 8:59:54 AM UTC-4, Yichao Yu wrote:
>
>
> Macros cannot be scope local (without major change of everything) 
> since they are executed at compile time and doesn't know anything in 
> the scope. 
>

Local macros in Lisp are expanded at compile-time. They're useful inside 
macro-expansions, eg.

@define_model() begin
    @var x = 10   # @var is a local macro, whose expansion depends on the 
@define_model arguments
end

I don't see why Julia couldn't support that.
 

>
> > 
> > Thanks. 
> > 
> > -- 
> > ELS'16 registration open! http://www.european-lisp-symposium.org 
> > 
> > Lisp, Jazz, Aïkido: http://www.didierverna.info 
>

Reply via email to