Re:A self-infecting datatype in Lisp
by lispm on Tuesday January 24, 2012 @09:33AM
(#3504859)
Nested DEFUNs is not the best idea...
[ Parent
| on HN ]
As a CL newbie, what would you suggest be used instead? Also, why would you not use nested defuns?
labels? http://www.lispworks.com/documentation/HyperSpec/Body/s_flet...
My guess: the nested defun is not only defined in the enclosing defun scope as it may seem, but in the whole current package.
http://www.lispworks.com/documentation/HyperSpec/Body/m_defu... "Defines a new function named function-name in the global environment"
Is it only a bad idea because it's bad style or is there more to it?