Re:Mount Unix system into Common Lisp image
by wk_end on Sunday September 22, 2024 @01:20AM
(#41614789)
But my intuition is that it needs to (well, should) introduce a new variable in order to store the evaluation of dir, otherwise it gets evaluated twice. If (foo bar) has no side-effects, that’s just a performance loss, but if it does it’s probably behaving in unexpected ways.
[ Parent
| on HN ]
Re:Mount Unix system into Common Lisp image
by tmtvl on Sunday September 22, 2024 @01:51AM
(#41614877)
Yeah, that is the strange thing, but binding it to a gensymmed variable would make it interchangeable with an inline function. That said, maybe `fg` is a macro which does some rewriting of its body, that could explain the decision.