On 10-12-08 11:19 AM, Koen Deforche wrote:
> I've fixed WRegExp so that passing it an invalid regular expession
> makes isValid() return false but does not throw an exception.
>

Is that how Wt works in general? C++ best practice would state that 
constructed objects should not be invalid and that constructors should 
throw.

This has arguably helped me make less buggy code.

-- 
Sohail Somani
--
iBlog : http://uint32t.blogspot.com
iTweet: http://twitter.com/somanisoftware
iCode : http://bitbucket.org/cheez



------------------------------------------------------------------------------
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to