Permalink
Macro envy
29 JAN 2004
Patrick Logan writes:
I can only whine a bit in response to this desire to create new flow of control sytax.
Yesterday I posted a new way to define functions and their tests contiguously using a new syntax in Scheme. It took about 10 minutes and less than 10 lines of code.
Likewise in Lisp as well as Smalltalk defining new control structures is childs play, mainly because the control structures in those languages are defined using the very same mechanisms that are available to you, the dear programmer.
Yes, I know, I am a loser to even bring this up.
Not a loser at all, Patrick! People need to be reminded of the power that macros (and first-class functions/blocks/etc.) bring to the table. I'm keeping my eye on Template Haskell and MetaOCaml (in addition to PLT Scheme, of course). I think a macro/multi-staging facility is extremely important, and I'd love to add one into Nice when I have the time.
