in reply to Re^3: Combining Import and Source-Filter to implement Syntactic Macro mechanism
in thread Combining Import and Source-Filter to implement Syntactic Macro mechanism
Let me pick one out of all the problems source filters have:
Combining them with others, or even nesting them.
They try to parse a whole file globally and introduce code at a distance. The next filter sees that output and is confused. The resulting problems are a nightmare to debug.
This can't happen here.
That's why macros are such a powerful tool in the lisp world.
Of course they should be used with care and have pitfalls ( see "hygienic" macros), but that's a problem all code generation has.
There are many longer elaborations about the limitations of source filters, I'd like to point you there.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
|
|---|