renamepalooza time

torhu no at spam.invalid
Sat Jan 22 06:32:19 PST 2011


On 22.01.2011 01:36, Sean Kelly wrote:
> Andrei Alexandrescu Wrote:
>>
>>  Ever since I worked with STL, I fell in love with
>>  names_with_underscores. I can't explain it, but my feeling is that code
>>  using that convention is calm and levelheaded. Camel case forces me to
>>  think of one-word names because at the second word some beauty is
>>  already lost; never felt the same with the underscores.
>
> I like the look of the STL convention, but overall prefer that Camel case distinguishes between types and values.  It completely eliminates the need for a "_type" suffix in STL-style typedefs, for one.

No problem:

Some_type
some_variable

I haven't actually used this style personally.  I've just noticed that 
it's the style used throughout Stroustrup's latest book (Programming). 
Seems like the obvious next step for the underscore style of naming.


More information about the Digitalmars-d mailing list