Arc Forumnew | comments | leaders | submitlogin
1 point by almkglor 6135 days ago | link | parent

What's so bad about generating function values? The function code is already precompiled, the only thing that (fn ...) does in run time is capture non-global free variables. So 'really-hard-working-optimizing-compiler just needs to output a compileable s-expression, and it will be compiled just once.


1 point by CatDancer 6135 days ago | link

just needs to output a compileable s-expression

I'm speculating here, but maybe I'm in a hurry and I want to use something in my macro without taking the time to rewrite it so that it produces an s-expression.

I actually don't know if having a macro expand into a function value would be useful for anything; I just noticed a way to do it and posted the solution in case it would be useful to somebody someday. (Not realizing that apparently this has been fixed in Anarki already).

-----