3 ms·
In Lisp this is solved with some combination of better names and symbol packages. E.g. you might have some doc-model:edit symbol and file-utils:edit or whateve
by kazinator 4y ago
In Lisp this is solved with some combination of better names and symbol packages.
E.g. you might have some doc-model:edit symbol and file-utils:edit or whatever. The symbols have the same name, but are different objects in different packages.
The generic function doc-model:edit is therefore unrelated to file:edit.
Packaging at the symbol level means that the package system is relevant to anything whatsoever that is named by a symbol. If you have some logic programming system where you declare some named rules or facts, they can easily go into a package. Symbols which are quoted individually or in a larger literal are in the package system all the same; it's an independent layer.