On Jul 14, 4:10 am, Charlie Savage <[EMAIL PROTECTED]> wrote:
> > It follows general practice -- of naming the project, gem, lib
> > directory and main module all the same. This is done to prevent people
> > from stepping on each other toes, plus of course it provides
> > convenience and consistency.
>
> > Also, to use XML as our top-level namespace is to claim a sort of
> > ownership to that name --in which case we might as well name the
> > project "xml" too. Of course, we could argue that LibXML is *THE* xml
> > library, so the namespace is appropriate. I'm just not sure that's
> > really fair.
>
> I agree.  If things were starting from scratch, this would be a
> non-issue, LibXml would clearly be the right choice.  The problem of
> course is things aren't starting from scratch.
>
> So - say we switch to a LibXML namespace.  Then of course the first
> thing we would have to do is map the XML namespace to the LibXML
> namespace.  Because if we don't, everyone's code will break, and that
> will result in unhappy users.

True. But the idea, as with any change like this, would be to encourge
users to migrate to LibXML:: and deprecate XML:: at sometime in the
far future.

> Thus I don't see much point in changing.  It was a mistake for sure, but
> one that was made and is now undoable.  And I suppose on the bright
> side, no other module has claimed the XML namespace, has it (I guess we
> get squatters rights).

True as well. But I wouldn't say undoable. We can *responsibly*
migrate. Or we can take a simpler solution and just wrap everything in
LibXML module. Then in libxml.rb:

  include LibXML

I leave it up to you all to decide what is best. All I ask is that the
lib directory at least be called 'libxml'.  There is a more direct
connection between the project name and the file system space than
there is between the file space and the module structure. The later is
convenient, but quite optional.

T.
_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to