4 ms·
CL: in a primitive way this can be done with generic functions. Use a generic function object. Redefined methods will be picked up without needing a new functio
by lispm 4y ago
CL: in a primitive way this can be done with generic functions. Use a generic function object. Redefined methods will be picked up without needing a new function object.
When using symbols, often it is not needed to look up symbol functions. Symbols can be called as functions. In code Lisp often assumes that functions are late bound (unless inlined), so a function call to a global function looks up the function from the symbol at runtime.
- suskeyhose 4y agoThis is kinda my point tho, CL's symbols are the same as Clojure's vars for this purpose. And the comparison between generic functions and multimethods is obvious and correct here as well. Late binding is irrelevant because all of this is about functions as arguments, not in funcall position.