|
|
|
|
|
by qwertyuiop924
3551 days ago
|
|
Well, then, if you don't have macros, then you don't have procedural macros, which was my point. And I didn't say it was a legitimate reason to use cons. I said it technically had better performance. As I stated above, the real reason I used it is because it fit my mental model of what was happening. |
|
Trivially.
Anyway, I don't consider them to be Lisp dialects anyway. They are new languages, Scheme dialects, scripting languages with parentheses, whatever. The name 'new'LISP says it already.
> I said it technically had better performance.
You thought it had, without actually knowing it.
So it's not copied and no traverse is needed.What actually is traversing the code is your IR-macro mechanism. Twice. -> ir-macro-transformer. Which makes it slower both in the interpreter and the compiler.
https://github.com/bnoordhuis/chicken-core/blob/master/expan...
Traverses the code, then calls the handler, traverses it again...
Btw., the code won't win any beauty contests.