News for hackers. Stuff that matters.
Re:Syntax-rules Primer for the Merely Eccentric by tumult on Wednesday September 16, 2009 @08:56AM (#825690)
Most Schemes give you define-macro (and gensym), which is the same as CL macros. Bigloo, Chicken, and some others even have hygienic macros off by default due to the overhead, and recommend that you use define-macro whenever possible.

I usually use a mixture of both. define-macro for when I'm just trying to kill some repetition without an obvious functional composition solution, and define-syntax for when I'm laying serious groundwork functionality.

Re:Syntax-rules Primer for the Merely Eccentric by magv on Wednesday September 16, 2009 @09:09AM (#825703)
> Bigloo, Chicken, and some others even have hygienic macros off by default due to the overhead, and recommend that you use define-macro whenever possible.

Not anymore for Chicken! Chicken 4.0 switched to `syntax-rules' and explicit renaming macros.

Edit: those who like traditional macros might also like explicit renaming ones [1,2], since they're very similar.

[1] http://www.gnu.org/software/mit-scheme/documentation/mit-sch...

[2] http://chicken.wiki.br/explicit-renaming-macros

Re:Syntax-rules Primer for the Merely Eccentric by tumult on Wednesday September 16, 2009 @11:21AM (#825970)
oops, you're right. nice!
Re:Syntax-rules Primer for the Merely Eccentric by esessoms on Wednesday September 16, 2009 @09:47AM (#825773)
I honestly can't decide if the news that many scheme implementations encourage you to not follow the standard refutes or supports my point.

Either way, good to know.

...gets back to work hacking in SBCL.