Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
mirek is currently offline  mirek
Messages: 13984
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 Smile

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: linking error trying to compile SQL_MySql demo on linux fedora 9
Next Topic: SQL*, SQL&, SQL*:: ???
Goto Forum:
  


Current Time: Sun Jun 09 01:43:25 CEST 2024

Total time taken to generate the page: 0.01195 seconds