From 0476256d2310f67410f60c78464a31397f8fa7fa Mon Sep 17 00:00:00 2001 From: Henrik Tidefelt Date: Thu, 22 Oct 2015 23:23:54 +0200 Subject: [PATCH] Doc: Namespace allocation --- doc/parts/syntax/namespaces.sxml | 44 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/doc/parts/syntax/namespaces.sxml b/doc/parts/syntax/namespaces.sxml index 7d8e186a..fd4ae188 100644 --- a/doc/parts/syntax/namespaces.sxml +++ b/doc/parts/syntax/namespaces.sxml @@ -28,6 +28,50 @@

+
+Namespace allocation + +

Similar to Java, the namespace of a extension is hard-coded. One could say that there is no such thing as changing the namespace of an extension; you can stop maintaining the extension in its original namespace and make a clone of it in another namespace, but the users of your extension will need to go through a more or less painful process to migrate from the old extension in the old namespace to the new extension in the new namespace. Using an extension as if it were placed in a different namespace than where it is defined is not possible (since the complexity that such design brings outweighs the benefits).

+ +

For a single user, hard-coded namespaces is probably not a big issue, but the situation gets more complicated when individuals and organizations start sharing code with each other. The risk of conflicting use of namespaces is obvious, and the solution is to define who is in charge of allocating namespaces in various subtrees of the entire namespace tree: +

+

+ +
Namespace lexer directives -- 2.11.4.GIT