Thanks for the added explanation. I understand now that your advice is
simply to write a function for each binding macro, which returns the
value(s) bound by the macro.
Thanks also for a great talk! The Clojure community is very fortunate to
have all this stuff publicly available on video.
--
Exactly!
I meant (slide #22) that some functions should extract (capture) the values
you are interested in so that your macros only need to deestructure this
result: macros should do as little as possible.
I hope this clarifies my point.
Christophe
Le mercredi 19 septembre 2012, Matching Socks a
The Google can find a PDF by that name. It uses "capturing" in the sense
of regular expressions. I think his idea is that in the DSL you identify
or produce information (capture it), but you do not specify the names by
which the user's program will refer to it (bind it).
--
You received thi
Apparently blip.tv is down now. I will take a look at the video when
it's available again and get back to you.
Regards,
BG
On Tue, Sep 18, 2012 at 12:47 PM, Alex Dowad wrote:
> Dear B.G., thanks for your response. I already understand the problem of
> variable capture in macros well. However, is
Dear B.G., thanks for your response. I already understand the problem of
variable capture in macros well. However, is that really what C. Grand is
talking about in "(not= DSL macros)"? If you have a video of the talk, the
part where he talks about "capturing" comes at about 13:40.
--
You recei
"Variable Capture" (a common problem with unhygenic macros) can
introduce defects in your code.
Wikipedia has some info on it -
https://en.wikipedia.org/wiki/Common_Lisp#Variable_capture_and_shadowing
For more, you should take a look at "On Lisp" by Paul Graham.
Regards,
BG
On Tue, Sep 18, 2012
In his talk entitled "(not= DSL macros)", C. Grand recommends designing the
core of a DSL with "capturing" rather than binding, then adding binding
macros as an extra layer on top if desired.
I'm trying to understand what exactly he means by "capturing" in this
context. I'm familiar with the us