4 ms·
What is good about namespaces? Well, it is ability to say something like (require [blah-blah :as b]) (b/map f xxxx) The key idea here is not to shadow map
by dschiptsov 12y ago
What is good about namespaces? Well, it is ability to say something like
(require [blah-blah :as b])
(b/map f xxxx)
The key idea here is not to shadow map in global namespace, if there is one.
Of course, we could just name procedures like, say "list/map" and "this/that" and this is the simplest but clumsy solution.
The great idea from Erlang, is that we could export just few procedures from a module, and hide all the helper procedures, so they will not pollute the global namespace.
Together these ideas are good and, perhaps, worth implementing. But do not forget that just naming issues could easily be solved by having packages and "qualified imports" or "full path" naming like "list:map" or "list/map".