|
From: | Panicz Maciej Godek |
Subject: | Re: and-let* is not composable? |
Date: | Fri, 13 Sep 2013 20:40:19 +0200 |
> (at least from the user's point of view), although sometimes a littleIf you, or the other people who are confused by syntax-case, can point
> tricky, the syntax-case system I find still too difficult to use.
> define-macro, on the other hand, is very easy to explain
> even to beginner programmers, although the resulting macros
> are much more difficult to analyse.
to the parts of the manual that confuse you, so we can clear them up, I
think we'd all appreciate it.
Fundamentally, syntax-case shouldn't be harder to use than define-macro
99% of the time, if you remember
- macros are functions from "syntax-objects" to syntax-objects
- syntax-objects are smart symbols
- syntax->datum to remove the smartness
- datum->syntax is for when you want to break hygiene (but syntax
parameters are better where applicable)
- use quasisyntax to construct lists of syntax-objects instead of
quasiquote to construct lists of symbols.
[Prev in Thread] | Current Thread | [Next in Thread] |