4 ms·
I really don't see what namespaces would achieve. The way it is I can look at something and explicitly see which module it belongs to (e.g. dired-next-line, ima
by pmr_ 15y ago
I really don't see what namespaces would achieve.
The way it is I can look at something and explicitly see which module it belongs to (e.g. dired-next-line, image-next-line vs. org-agenda-next-line).
In my experience namespaces only introduce notation to distinguish modules but so does a simple convention.
- lurker19 15y agoNamespaces are nice when the language lets you name a space at the top of a file or a block and then not repeat the name prefix on every identifier inside. They are not just used to add dots to identifier names, although that would often be NSNice in NSItself.
- cema 15y agoShould be nc-nice, we are talking lisp here. Although this looks like a regular prefix. How does the namespaced elisp propose to refer to entities from other namespaces?
- pmr_ 15y agoThis is exactly my point: It isn't nice. I want to grep a file for a name and exactly that name, maybe I even want to replace it. I just can't do that without any fancy tools as soon as namespaces introduce ambiguity that I can't resolve when I look at a narrow region of a file.