https://bugzilla.wikimedia.org/show_bug.cgi?id=31063
Tim Starling <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #18 from Tim Starling <[email protected]> 2011-11-23 00:57:21 UTC --- I support the idea of having all namespaces, including pre-defined system namespaces like NS_USER, tracked by a table in the database. For performance reasons, no functions should be called unconditionally on startup, say from the file level of an extension setup file. It's not clear to me whether Daniel imagines that MWNamespace::reserveExtensionNamespace() would be called from such a context. Having unique string keys would be useful, but I agree with Happy Melon in CR r103893 that it's best to encapsulate them in an object for most interfaces, rather than passing them raw. Instead of MWNamespace::reserveExtensionNamespace( 'SMW_PROPERTY', 'content' ), we could have something like MWNamespace::getInstance('SMW_PROPERTY')->getId(). I'd rather have some new scheme for namespace string keys, rather than continuing the ugly all-caps style we have now. For example, the user namespace could be called "mw.user", user talk could be "mw.user.talk", and NS_SMW_PROPERTY could be "smw.property". -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
