Proposal for std.path replacement

Jonathan M Davis jmdavisProg at gmx.com
Fri Mar 4 08:41:37 PST 2011


On Friday 04 March 2011 07:42:38 David Nadlinger wrote:
> 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.

The general consensus of the previous discussion was that we would stick to 
camelcase regardless of where the original name came from. People generally 
considered it harder to remember the names if you had to remember that they had 
screwy casing.

- Jonathan M Davis


More information about the Digitalmars-d mailing list