
"Larry Evans" <cppljevans@cox-internet.com> 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
On 10/02/2005 04:00 PM, Jonathan Wakely wrote: 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>()
It's pretty easy to achieve something like customers[customers::name()]. In RTL we do just this. Regards, Arkadiy