Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Connection::connect() interface is changing

From: Warren Young <mysqlpp(at)etr-usa.com>
Date: Mon Jul 16 2007 - 08:07:33 EDT


Joel Fielder wrote:
>
> Perhaps the named constructor idiom is an
> alternative option for consideration?

I don't see a big difference. Lacking a strong motivation, I'll go with the non-idiomatic way. The problem with idioms is that they're confusing to those who don't know them yet.

Another problem I have with the named constructor idea is that I don't think I can get away with hiding Connection's ctor. You need it for those instances where you don't really know what kind of connection you will need in advance, and want to rely on the current behavior, where it figures it out from the values you pass.

Think of the subclasses as specializations for those times when you can afford to trade flexibility for simplicity.

-- 
MySQL++ Mailing List
For list archives: 
http://lists.mysql.com/plusplus
To unsubscribe:    
http://lists.mysql.com/plusplus?unsub=lists@pantek.com
Received on Mon Jul 16 08:06:00 2007

This archive was generated by hypermail 2.1.8 : Thu Aug 09 2007 - 19:28:30 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library