std.path.toAbsolutePath / toNormalizedPath / toRelativePath

Vladimir Panteleev via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 25 06:35:28 PDT 2015


On Tuesday, 23 June 2015 at 22:45:10 UTC, Vladimir Panteleev 
wrote:
> http://dump.thecybershadow.net/0362443dfcca30860db907e494831b79/names.diff

Rationale:

- The eager versions are called absolutePath, normalizedPath, 
relativePath. If anything, the current naming scheme is opposite 
to some options we've been discussing (e.g. eager=toLowerCase, 
lazy=lowerCase[d|r]).

Suggested new names: asAbsolutePath, asNormalizedPath, 
asRelativePath.

Couldn't think of anything better, but I think this is an 
improvement. If we are to adopt the "as" prefix, we could also go 
with asLowerCase/asUpperCase for the std.uni ones.


More information about the Digitalmars-d mailing list