[plt-scheme] (require xml) and modules

From: Eli Barzilay (eli at barzilay.org)
Date: Tue Jul 8 21:03:17 EDT 2008

On Jul  8, Gregory Woodhouse wrote:
> I'm working on a module of XML utilities (maybe including an XPath
> implementation, but it may only be partial at this point) and, as
> you might expect, I need to (require xml). I expect include
> functions that either take x-expressions as arguments or return
> them, or both.  So here's my question: Should I include (require
> xml) within the module? I presume people using the module will also
> need to do this within their own code.

You can choose to have your library complete the xml library, so it's
sometimes useful with code that requires xml too but sometimes it'll
be enough to just create xexprs directly.  Or you can choose to have
your library reprovide everything from the xml library if you want it
to be a superset.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!


Posted on the users mailing list.