Proposal for std.path replacement
David Nadlinger
see at klickverbot.at
Fri Mar 4 07:42:38 PST 2011
On 3/4/11 4:10 PM, Andrei Alexandrescu wrote:
> On 3/4/11 2:35 AM, Lars T. Kyllingstad wrote:
>> One more vote for dirName() has been noted. :)
>
> Meh. Since we have basename which is a replica of the homonym Unix
> command, I think dirname (with that exact spelling) would be most
> appropriate there.
I must admit that I don't quite remember the results of the previous
naming convention discussion regarding function names »imported« from
other languages/systems, but my position hasn't changed since then: Just
go with the D naming convention to make the name easy to remember/guess
for _D programmers_, keeping in mind that DMD has a spell-checking
feature to assist people new to D.
I'd also prefer dirName for clarity, by the way, but I don't think
longer names are worse generally.
David
More information about the Digitalmars-d
mailing list