[phobos] next release (meaning of path)
spir
denis.spir at gmail.com
Mon Jan 3 07:16:43 PST 2011
On Mon, 3 Jan 2011 05:25:33 -0800
Jonathan M Davis <jmdavisProg at gmx.com> wrote:
> The question is whether
> such a [Path] type should be in Phobos and/or whether it should be the normal way of
> handling paths, or just a nice, alternate way of dealing with paths.
I'm all for a Path type to be the standard way of dealings with pathes, especially abstracting away OS/FS issues, as long as it(s cheap in code and computation, meaning:
* it takes any form of plain single-string path, valid on any OS
* its construction does nearly nothing silently, except maybe splitting the string on seps
Then we could have all kinds of niceties, but only on demand. In particular, with the later format param on writeTo, we could have path string according to specified OS or in canonical, OS-independant, form (eg using '|' as sep), while no format would mean according actual underlying OS.
Another option would be a true Directory (or Folder) type, with content (recursive) iteraton and such (again, as long as its construction is cheap, and all service computations are on demand).
Denis
-- -- -- -- -- -- --
vit esse estrany ☣
spir.wikidot.com
More information about the phobos
mailing list