Boost logo

Boost :

Subject: Re: [boost] lhs/rhs ([Review] Type Traits Extension ending tomorrow)
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-03-21 14:06:32


On Mon, Mar 21, 2011 at 6:10 AM, Robert Jones <robertgbjones_at_[hidden]> wrote:
>>
>> On Mar 21, 2011, at 4:52 AM, Max Sobolev wrote:
>
>>
> On 21.03.2011 13:43, Joachim Faulhaber wrote:
>>
>>> (1) Template parameter Identifiers are lower case except for the first
>>>
>>>> letter. This is official boost policy. Only BOOST_MACROS are
>>>
>>>> completely upper case. So:
>>>
>>>>
>>> template<class Left, class Right, class Result>   instead of
>>> template<class LHS, class RHS, class RET>  Abbrs. are dscrgd. ;)
>>>
>>
>> agree.
>>
>>>
>> I /hate/ lhs/rhs identifiers :( (despite my respect to people that use it
>> (Scott Meyers etc.) :))
>>
>
> How curious... despite all their demonstrable short comings (similarity,
> redundancy, etc), I think
> that pair of identifiers are some of the best, most instantly recognisable
> and understandable identifiers
> ever coined!

+1.

> Each to their own I guess.

I would go further: it's a mistake to break with a well-established
convention that works just on principle. The chance that your
alternative will work better in practice is extremely low.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk