Re: Expanded function syntax

2008-02-05 Thread Jason Orendorff
On Jan 31, 2008 5:08 PM, Mark Filipak <[EMAIL PROTECTED]> wrote: > What I have to write now: > getFirstChildOfElementWithTagName(Papa, 'baby'); If you're not writing something like $("baby:first", Papa), you're missing out on what the language already has to offer. -j __

Re: Expanded function syntax

2008-02-01 Thread Brendan Eich
On Feb 1, 2008, at 5:28 PM, Mark Filipak wrote: > Mr. Eich: Thank you for your suggestion. Unless I've been spending > time with Mescalito, to implement > > getFirstChildOfElement(Papa).withTagName('baby'), > > since it has no idea which child is targeted, the first function > would have to

Re: Expanded function syntax

2008-02-01 Thread Mark Filipak
Mr. Eich: Thank you for your suggestion. Unless I've been spending time with Mescalito, to implement getFirstChildOfElement(Papa).withTagName('baby'), since it has no idea which child is targeted, the first function would have to return an array of all children. Thus .withTagName() would have

Re: Expanded function syntax

2008-02-01 Thread T. Michael Keesey
On Feb 1, 2008 12:01 PM, Brendan Eich <[EMAIL PROTECTED]> wrote: > On Jan 31, 2008, at 5:13 PM, Mark Filipak wrote: > > > What I have to write now: > > > > getFirstChildOfElementWithTagName(Papa, 'baby'); > > > > What I'd like to be able to write: > > > > getFirstChildOfElement(Papa)withTagName('

Re: Expanded function syntax

2008-02-01 Thread Brendan Eich
On Jan 31, 2008, at 5:13 PM, Mark Filipak wrote: > Hello, > > (Sorry. What I meant to write is below.) > > May I make a pitch for an expanded function syntax? This example will > say it all (I hope). > > What I have to write now: > > getFirstChildOfElementWithTagNa

Re: Expanded function syntax

2008-02-01 Thread Peter Hall
sense for a lot of functions. I > > couldn't quite decipher your objective: would either (or both > > together) of named arguments or method overloading do what you want? > > > > Peter > > > > > > > > On Feb 1, 2008 1:13 AM, Mark Filipak <[

Expanded function syntax

2008-01-31 Thread Mark Filipak
Hello, (Sorry. What I meant to write is below.) May I make a pitch for an expanded function syntax? This example will say it all (I hope). What I have to write now: getFirstChildOfElementWithTagName(Papa, 'baby'); What I'd like to be able to write: getFirstChildOfElement(P

Expanded function syntax

2008-01-31 Thread Mark Filipak
Hello, May I make a pitch for an expanded function syntax? This example will say it all (I hope). What I have to write now: getFirstChildOfElementWithTagName(Papa, 'baby'); What I'd like to be able to write: getFirstChildOfElement(myPapa)withTagName('