On Fri, 16 Feb 2007 13:11:05 -0500 "John Siracusa" <[EMAIL PROTECTED]> wrote: 

JS> How do people feel about the following shortcuts?
Manager-> get_objects([ a => 1, b => 2 ]);
Manager-> get_objects({ a => 1, b => 2 });

JS> Both being equivalent to:

Manager-> get_objects(query => [ a => 1, b => 2 ]);

JS> This is how the new "find" relationship method type works, and I'm
JS> wondering if get_objects() shouldn't work that way too.

JS> Pro: saves some typing
JS> Con: small additional overhead to check and coerce the args

I like it.  It DWIM.

Ted

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to