T
Trans
Hi--
Little bit of debate going on with LibXML, and I'd like to get some
general feed back.
Currently the module namespace used by libxml-ruby is "XML", so we see
code like:
require 'libxml'
XML:ocument.new
The question is whether that's fair, since it sort of lays claim to
"XML" as owned by the libxml project. It also means the libraries name
does not correspond to the top module name. So we are considering
instead switching to:
LibXML:ocument.new
(though we would leave backward compatibility in for a while). Another
option is:
LibXML::XML:ocument.new
since one can always do
include LibXML
to get the same functionality that we have now.
What do others think? What is the best/proper approach here?
Thanks,
T.
Little bit of debate going on with LibXML, and I'd like to get some
general feed back.
Currently the module namespace used by libxml-ruby is "XML", so we see
code like:
require 'libxml'
XML:ocument.new
The question is whether that's fair, since it sort of lays claim to
"XML" as owned by the libxml project. It also means the libraries name
does not correspond to the top module name. So we are considering
instead switching to:
LibXML:ocument.new
(though we would leave backward compatibility in for a while). Another
option is:
LibXML::XML:ocument.new
since one can always do
include LibXML
to get the same functionality that we have now.
What do others think? What is the best/proper approach here?
Thanks,
T.