
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>()
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.