Bug 13949 – Alias baseName() as stripPath()

Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2015-01-07T20:22:58Z
Last change time
2020-03-21T03:56:34Z
Assigned to
No Owner
Creator
Basile-z

Comments

Comment #0 by b2.temp — 2015-01-07T20:22:58Z
std.path.baseName should have an alias named stripPath e.g: alias stripPath = baseName; Because it matches to the semantic used in stripExtension stripDrive ... so the function set used to decompose a filename would be more homogeneous.
Comment #1 by issues.dlang — 2015-01-08T02:12:10Z
We don't normally add aliases for functions like that, because it tends to just cause confusion to users and clutter in the library. And naming functions is a bit of an art which frequently has no right anwser and which tends to get bikeshedded to death due to how subjective it is and how easy it is to have an opinion on the matter.
Comment #2 by ketmar — 2015-01-08T08:26:31Z
besides, it's very easy to remember for posix-compatible os users. ;-)