Let's do front, back, popFront, and popBack!

Chad J gamerchad at __spam.is.bad__gmail.com
Fri Jan 30 16:32:44 PST 2009


Andrei Alexandrescu wrote:
> Sergey Gromov wrote:
>> Thu, 29 Jan 2009 18:54:14 -0800, Andrei Alexandrescu wrote:
>>> Let's!!
>>
>> I like it.  I think this even was proposed before but was rejected
>> because of Walter's attitude towards composite primitive names.  I also
>> like the symmetry because ranges are a more generic construct than
>> single-linked lists where head et al. come from.
>>
>> Probably I don't like capitalization in built-in primitive names, it
>> smells of C#.  I'd prefer popfront and popback.
> 
> Me too, but it would run counter to the prevailing naming convention in
> phobosAtLeast. There are many places in phobos where that's not
> respected though...
> 
> Andrei

Phobos not adhering to it's own naming convention always rubbed me the
wrong way.

As for composite primitive/builtin names... foreach_reverse :/

Mostly though I don't really care.  I use Tango and foreach_reverse is
forgivable ;)



More information about the Digitalmars-d mailing list