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
[email protected]
http://michelf.com/



_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to