std.path review: update

Jesse Phillips jessekphillips+d at gmail.com
Sun Jul 17 20:27:40 PDT 2011


On Sun, 17 Jul 2011 21:27:41 +0000, Lars T. Kyllingstad wrote:

> - Should I add toNativePath(), which replaces '/' with '\' on Windows
> and vice versa on POSIX?

I'm not sure my opinion on this. It seems like a useful idea, but as 
Andrej points out it make just cause other issues.
 
> - Should it be specified/documented whether a function returns "" or
> null?  Specifically, is it important that
> 
>     extension("foo") is null
>     extension("foo.") !is null && extension("foo.") == ""

I don't think it is important, but probably should be documented.
 
> - Do people agree with Jonathan's views on function names?

I think I did.




More information about the Digitalmars-d mailing list