|
Boost : |
From: Larry Evans (cppljevans_at_[hidden])
Date: 2005-10-02 16:31:18
On 10/02/2005 04:00 PM, Jonathan Wakely wrote:
> Larry Evans wrote:
>>On 09/27/2005 05:05 PM, Calum Grant wrote:
>>
>>>An early RML did use tuples indexed in the way you describe. I did use
>>>enums - writing magic numbers is very bad for readibility and
>>
>> ^^^^^^^^^^^^^ I guess you mean an enumeration here?
>
> I read it to mean he used enums *because* writing magic numbers is bad.
> However, he prefers to read ...
Ah! Thanks for clarifying. I guess the "magic number" would be
the 0 in get<0>(a_tuple) for the first element in the tuple.
>
>
>>>maintainability. Personally I prefer to read
>>>
>>> customers.name
[snip]
>>Or, customers.get<customers::name>()
>>
>>OK, that's a little less readable :( , but I guess you believe the
>>disadvantage of macro use is not as bad as the disadvantage of
>>prefixing customers:: to the enumerator. I'm not that sure.
[snip]
> Also, many queries have a large number of conditions, so the C++ syntax
> will get very long and so is *much* harder to read (and write!)
OK. You've convinced me.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk