Home » U++ Library support » U++ SQL » Syntactic sugar
Re: Syntactic sugar [message #18913 is a reply to message #18767] |
Fri, 31 October 2008 15:02  |
 |
mirek
Messages: 14261 Registered: November 2005
|
Ultimate Member |
|
|
unodgs wrote on Mon, 20 October 2008 08:22 | I think it would be nice to add to SqlId interface overloaded [] operator:
SqlCol operator [] (const SqlId& id) const;
which let us to write
Select(ID, CUSTOMER[NAME], PRODUCT[QUANTITY])...
insead of
Select(ID, NAME.Of(CUSTOMER), QUANTITY.Of(PRODUCT))...
What do you think?
|
Well, it felt a bit weird at first, but after a bit of thinking, I think this is quite natural.
Added. (And sorry for the delay, T++/A++ is really driving me insane 
Mirek
|
|
|
Goto Forum:
Current Time: Mon Jun 23 18:16:47 CEST 2025
Total time taken to generate the page: 0.04521 seconds
|