Why don't clojure namespaces exist in MVCC?

There is a lot of discussion about how to best reveal namespaces. Stuart Sierra enlightens us all in this Lifecycle Composition and works with clojure.tools.namespace .

Most of the complexity is associated with variability of namespaces; then why don't we put the namespaces in Clojures own MVCC? There must be a reason why, but I cannot figure it out myself.

+4
source share
2 answers

One practical reason is that namespaces are used to build MVCC , so it makes compiler creation more difficult, though impossible, to use MVCC in creating namespaces. Another reason is how programmers modify them. Although the contents of links usually change by manipulating data as the program starts, the contents of vars in namsepace almost always change during program development, where the vast majority of the time the programmer wants the changes to be visible on the system right away.

, , . , , ref dosync. , MVCC , , , , .

+2

- , - , .

, , : , ns, require .. vars , , - ; ns/require , .

, ns/require, , . , .

+1

All Articles