Derick Eddington <[email protected]> writes:

> On Sun, 2010-04-11 at 23:46 +0200, Andreas Rottmann wrote:
>> Eduardo Cavazos <[email protected]> writes:
>
>> > Both Xitomatl and Spells have libraries for pathnames, filesystem, and
>> > include'. It'd be nice to consolodate these if possible. In fact, some
>> > of the above make use of 'include' (and pathnames/filesystem in turn)
>> > so it might be a a requirement to get those squared away.
>> >
>> xitomatl's and spells' path(name) libraries are quite different --
>> xitomatl's are string-based, while spells' are structured. Also, the
>> spells' filesystem library accepts spells' pathnames as well as plain
>> (name)strings. I wonder how Derick thinks about consolidation here.
>
> I don't think we need to consolidate pathname and include libraries in
> order to make collections like the proposed (ported ---) one.  
>
I'm not sure I agree: I don't envision a single (ported ...) collection
(i.e. a single "package" in dorodango-speak), but multiple packages that
share the (ported ...) namespace. E.g. there will be a foof-loop
package, a fmt package, an as-match package, etc. In that vein, having a
package providing an `include-file' macro would make sense, as it each
package of ported code is very likely to need this functionality.

> Such collection will be using such functionality privately and it can
> be changed in the future without affecting public use of the
> collection.  Some basic pathname and include functionality for private
> use is very easy to make, so I don't think the (ported ---) collection
> should be held-up waiting for us to attempt to design The Pathname and
> Include Libraries Everything Should Use.
>
If there'd be only one collection (or package) for the ported code, I'd
agree, but see above. The package providing `include' doesn't need to
expose a pathname interface as well, but should allow the user to
specify the path to the included file (relative to the library search
path) in a platform-independent way.

Regards, Rotty
-- 
Andreas Rottmann -- <http://rotty.yi.org/>

Reply via email to