[phobos] next release (meaning of path)

Michel Fortin michel.fortin at michelf.com
Sun Jan 2 16:18:20 PST 2011


Le 2011-01-02 à 19:01, Andrei Alexandrescu a écrit :

> Let's have a brief vote. Do you think we should have a string-like structure Path in std.path? What primitives should it have?
> 
> I'm fine using strings, but I could be convinced to use a Path type if it had some compelling advantages.

I don't mind much having paths as strings, except for one thing:

What I dislike currently is that std.path always implement the OS filesystem path syntax. In some code dealing with the web I had to implement my own path functions to deal with URL paths (using std.path would break on Windows). So having distinct types to deal with different kinds of paths would probably be helpful.

That said, perhaps handling of URIs doesn't belong in std.path...

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/





More information about the phobos mailing list