3 ms·
That would complicate hot-reloading though. Currently you can just modify a function and reload it by re-executing its defun. If you implement smarter namespaci
by jolmg 5y ago
That would complicate hot-reloading though. Currently you can just modify a function and reload it by re-executing its defun. If you implement smarter namespacing, reloading it would require knowing what namespace it belongs to. You'd have to do the modification in the original file instead of anywhere (like the *stratch* buffer), or put the modified definition in some kind of construct that specifies the namespace it belongs to.
Also, finding the documentation and definition of a given symbol under the cursor would also get more complicated.
Having everything in one global namespace has its perks.
- pritambaral 5y agoCommon Lisp has both namespacing (even package-local-nicknames!) and hot-reloading by re-executing its defun. Emacs Lisp isn't too far off Common Lisp, and whatever allows CL to have this (mostly the reader, and of course, the package system) is also easy to support in Emacs Lisp.