Re: [racket] Formal Presentation and initial doubts.

2014-03-22 Thread Daniel Prager
I'm interested in a layered approach to learning the macro system, which makes a lot of sense from a learning point of view. I was able to get Matthias's example(s) to work with the aid of DrRacket and a little guesswork (at the level of pattern-matching) to fix the typos, and trivially extended i

Re: [racket] Formal Presentation and initial doubts.

2014-03-22 Thread Sam Tobin-Hochstadt
On Mar 22, 2014 3:44 AM, "Daniel Prager" wrote: > > > Does… CL have a pattern-based macro syntax like syntax-rules? > > Not buit-in. > > > If not, it seems surprising to argue that lisp macros would be easier to learn. Can you give examples? > > The explanation of CL macros and their application i

Re: [racket] Formal Presentation and initial doubts.

2014-03-22 Thread Neil Van Dyke
Konrad Hinsen wrote at 03/22/2014 07:15 AM: --On 22 mars 2014 04:18:03 -0400 Neil Van Dyke wrote: One tip for writing macros: make your transformer pattern variables be all-uppercase. This convention makes reading and writing macros much easier for humans, and also less confusing to learn (bec

Re: [racket] Formal Presentation and initial doubts.

2014-03-22 Thread Konrad Hinsen
--On 22 mars 2014 04:18:03 -0400 Neil Van Dyke wrote: One tip for writing macros: make your transformer pattern variables be all-uppercase. This convention makes reading and writing macros much easier for humans, and also less confusing to learn (because people seeing examples are less confuse

Re: [racket] Formal Presentation and initial doubts.

2014-03-22 Thread Neil Van Dyke
Neil Van Dyke wrote at 03/22/2014 04:18 AM: So why not just start with "syntax-parse" or "syntax-rules", Oops, I meant "syntax-parse" or "syntax-case". Neil V. Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Formal Presentation and initial doubts.

2014-03-22 Thread Neil Van Dyke
Welcome to Racket, Alejandro. The different Racket macro tools are harder to learn than CL's. But once you invest in learning the Racket ones, in my experience, they feel much more sophisticated than CL's. Macros are easily one of Racket's biggest strengths over other languages. There are

Re: [racket] Formal Presentation and initial doubts.

2014-03-22 Thread Daniel Prager
> Does... CL have a pattern-based macro syntax like syntax-rules? Not buit-in. > If not, it seems surprising to argue that lisp macros would be easier to learn. Can you give examples? The explanation of CL macros and their application in On Lisp s