3 ms·
Not sure this is very true for Common Lisp. Classic example are accessor functions where the generic function is created by whichever class is defined first and
by dan-robertson 2y ago
Not sure this is very true for Common Lisp. Classic example are accessor functions where the generic function is created by whichever class is defined first and the method where the class is defined. Other macros will construct new symbols for function names (or take them from the macro arguments).
- f1shy 2y agoStill you can extend the concept without a lot of work, couldn't you?
- db48x 2y agoThat’s true, but I regard it as fairly minor. Accessor functions don't have any logic in them, so in practice you don’t have to grep for them. But it can be confusing for new players, since they don't know ahead of time which ones are accessors and which are not.