Re: [RDBO] New Manager argument forms

2007-02-18 Thread Jonathan Vanasco

On Feb 17, 2007, at 10:17 PM, Danial Pearce wrote:
 Why would you think that? The first example is passing a hash, the
 second is passing a hashref.


The bulk of CPAN modules i've been using lately have been taking a  
hash or hashref as input equally.  and i thought  rose did something  
similar when  passing in args to get_objects


-
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.phpp=sourceforgeCID=DEVDEV
___
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object


[RDBO] New Manager argument forms

2007-02-16 Thread John Siracusa
How do people feel about the following shortcuts?

Manager-get_objects([ a = 1, b = 2 ]);
Manager-get_objects({ a = 1, b = 2 });

Both being equivalent to:

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

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

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

Opinions?

-John

-
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.phpp=sourceforgeCID=DEVDEV
___
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object


Re: [RDBO] New Manager argument forms

2007-02-16 Thread Jonathan Vanasco

On Feb 16, 2007, at 1:11 PM, John Siracusa wrote:

 How do people feel about the following shortcuts?

 Manager-get_objects([ a = 1, b = 2 ]);
 Manager-get_objects({ a = 1, b = 2 });

 Both being equivalent to:

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

i don't like it as something on get_objects itself

i'd +1 it  as another function name.   it just seems to anti- the  
rest of get_objects

get_objects_quick( [ a = 1, b = 2 ] )
get_objects_query( [ a = 1, b = 2 ] )
get_obj_query( [ a = 1, b = 2 ] )
obj_query( [ a = 1, b = 2 ] )
get_query( [ a = 1, b = 2 ] )



// 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
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -



-
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.phpp=sourceforgeCID=DEVDEV
___
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object


Re: [RDBO] New Manager argument forms

2007-02-16 Thread Ted Zlatanov
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.phpp=sourceforgeCID=DEVDEV
___
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object


Re: [RDBO] New Manager argument forms

2007-02-16 Thread Ask Bjørn Hansen

On Feb 16, 2007, at 10:11, John Siracusa wrote:

 Opinions?

My initial thought was messy, but I keep typing it that way  
expecting it to work so I agree with Ted, DWIM.


   - ask

-- 
http://develooper.com/ - http://askask.com/



-
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.phpp=sourceforgeCID=DEVDEV
___
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object


Re: [RDBO] New Manager argument forms

2007-02-16 Thread Jud
Opinions?
 
 
 My initial thought was messy, but I keep typing it that way  
 expecting it to work so I agree with Ted, DWIM.

+1 for me also. I do the same thing.


-
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.phpp=sourceforgeCID=DEVDEV
___
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object