On Oct 24, 2006, at 12:26 AM, John Siracusa wrote:

>> b) i have it doing that already.  it's just weird having a double
>> negative... it seems odd that found isn't in there already
>
> The success case is clear: you get a true return value back from  
> load().
> When there's a failure, depending on your error mode, you may need  
> a way to
> distinguish between a failure due to some unforeseen problem  
> (network error,
> database error, etc.) and an "expected" failure because a row  
> simply isn't
> in the database.  That's why there's not_found(), but no found().


I'm bringing this request up again, in part because i'm stubborn with  
wishlists, and more in part because I've been making increased use of  
load_speculative.

load_speculative essentially returns 'found' when called-- but the  
only way to get at that elsewhere in your code is by calling  !  
not_found -- which is like an evil tongue twister.

I'm using my own found method in a base class to keep my sanity  
( which just returns ! not_found ) , but i think 'found' really  
belongs in rose itself





// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
| SyndiClick.com
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      FindMeOn.com - The cure for Multiple Web Personality Disorder
|      Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      RoadSound.com - Tools For Bands, Stuff For Fans
|      Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to