Re: [julia-users] Re: macros design

2016-04-20 Thread Milan Bouchet-Valat
Le mercredi 20 avril 2016 à 16:22 +0100, Didier Verna a écrit : > Milan Bouchet-Valat wrote: > > > > > OTOH, short-circuit operators are in limited number (&& and ||). > > Packages authors cannot create new ones without the user knowing >   Do you mean it's possible to create

Re: [julia-users] Re: macros design

2016-04-20 Thread Didier Verna
Milan Bouchet-Valat wrote: > OTOH, short-circuit operators are in limited number (&& and ||). > Packages authors cannot create new ones without the user knowing Do you mean it's possible to create new short-circuit operators ? > Yes. For example, DataFrames.jl and

Re: [julia-users] Re: macros design

2016-04-20 Thread Didier Verna
Isaiah Norton wrote: > Just to follow up on this a bit: we've continually reworked the > metaprogramming documentation because it can be an especially > difficult concept for people who don't have a compiler background or > Lisp experience. The most common sources of

Re: [julia-users] Re: macros design

2016-04-20 Thread Didier Verna
cormull...@mac.com wrote: > https://github.com/JuliaLang/julia/blob/3c354b4a391307d84915445bdd6fb464371f30fc/doc/at_macro_reasons > Nice, thanks :-) -- ELS'16 registration open! http://www.european-lisp-symposium.org Lisp, Jazz, Aïkido: http://www.didierverna.info

Re: [julia-users] Re: macros design

2016-04-20 Thread Milan Bouchet-Valat
Le mercredi 20 avril 2016 à 15:34 +0100, Didier Verna a écrit : > Matt Bauman wrote: > > > > > It's nice for both humans (it's obvious that there could be some > > non-standard evaluation semantics or other such funniness) >   Maybe for /some/ humans ;-), but I don't like

Re: [julia-users] Re: macros design

2016-04-20 Thread Isaiah Norton
> > Yup, implicit return works for macros, too. The manual makes it explicit > to emphasize the function-like syntax transformation (as opposed to > CPP-like textual substitution). Just to follow up on this a bit: we've continually reworked the metaprogramming documentation because it can be an

[julia-users] Re: macros design

2016-04-20 Thread Matt Bauman
On Wednesday, April 20, 2016 at 8:58:35 AM UTC-4, Didier Verna wrote: > > > What's the rationale behind this particular way of invoking macros > (the @ character) ? It's nice for both humans (it's obvious that there could be some non-standard evaluation semantics or other such funniness)

[julia-users] Re: macros design

2016-04-20 Thread cormullion
https://github.com/JuliaLang/julia/blob/3c354b4a391307d84915445bdd6fb464371f30fc/doc/at_macro_reasons

[julia-users] Re: macros design

2016-04-20 Thread Didier Verna
I wrote: > What's the rationale behind this particular way of invoking macros > (the @ character) ? And why a single macro concept for two different > things (with or without arguments) ? Also, I'm wondering about the use of RETURN in all the one-liner macro examples from the