Hacker News new | ask | show | jobs
by dreamcompiler 2310 days ago
If I were doing the above a lot, I'd write compose as a macro (or better yet a compiler macro). In that case, the only thing above that needs to be changed is the setq, which would have to be written as

  (setf (fdefinition g) (compose f f))
Still different from Scheme, but some of the differences can be papered over with macros.