Re: wantarray() should be named wantlist() (was Re: date interface (was Re: perl6 requirements, on bootstrap))

2000-08-03 Thread skud
On Thu, Aug 03, 2000 at 07:27:18PM -0700, Nathan Wiger wrote: >> if (want 'hash') { return %hash } # rather than eq > >I like this alot. Works for me. K. -- Kirrily Robert -- <[EMAIL PROTECTED]> -- http://netizen.com.au/ Open Source development, consulting and solutions Level 10, 500 Collins

Re: wantarray() should be named wantlist() (was Re: date interface (was Re: perl6 requirements, on bootstrap))

2000-08-03 Thread Nathan Wiger
> if (want 'hash') { return %hash } # rather than eq I like this alot. -Nate

Re: wantarray() should be named wantlist() (was Re: date interface (was Re: perl6 requirements, on bootstrap))

2000-08-03 Thread Tad McClellan
On Fri, Aug 04, 2000 at 05:24:43AM +1000, Damian Conway wrote: > Tad pointed out: >> I will RFCify this within the next few days (unless someone >> can shoot it down right now). > > http://www.csse.monash.edu.au/~damian/Perl/want.proposal I withdraw my threat of RFCification, and bow

Re: wantarray() should be named wantlist() (was Re: date interface (was Re: perl6 requirements, on bootstrap))

2000-08-03 Thread Damian Conway
Tad pointed out: > Due to the recent "rename local()" and "can't return an array" > discussions here, we should also consider "rename wantarray()" > as well. > > It should be named wantlist(), because it does not tell you > if it wants an array, it tells you whether you were ca

Re: wantarray() should be named wantlist() (was Re: date interface (was Re: perl6 requirements, on bootstrap))

2000-08-03 Thread Jonathan Scott Duff
On Thu, Aug 03, 2000 at 11:15:17AM -0400, Clayton Scott wrote: > Why not context()? Sure, that works too. Although for want(), I can see this instead: if (want 'hash') { return %hash } # rather than eq and that reads better than if (context hash) { return %hash } Hmm. want = 'hash';

Re: wantarray() should be named wantlist() (was Re: date interface (was Re: perl6 requirements, on bootstrap))

2000-08-03 Thread Clayton Scott
Jonathan Scott Duff wrote: > > On Thu, Aug 03, 2000 at 10:02:44AM -0400, Tad McClellan wrote: > > > > On Thu, Aug 03, 2000 at 10:53:02AM +0100, Hildo Biersma wrote: > > > > > If functions could distinguish between > > > 'wantarray' and 'wanthahs' this would be easy to do. > > > > > > Due to the r

Re: wantarray() should be named wantlist() (was Re: date interface (was Re: perl6 requirements, on bootstrap))

2000-08-03 Thread Graham Barr
On Thu, Aug 03, 2000 at 10:02:44AM -0400, Tad McClellan wrote: > It should be named wantlist() I actually think there is a need for a more generic replacement, say want() or context() Graham.

Re: wantarray() should be named wantlist() (was Re: date interface (was Re: perl6 requirements, on bootstrap))

2000-08-03 Thread Jonathan Scott Duff
On Thu, Aug 03, 2000 at 10:02:44AM -0400, Tad McClellan wrote: > > On Thu, Aug 03, 2000 at 10:53:02AM +0100, Hildo Biersma wrote: > > > If functions could distinguish between > > 'wantarray' and 'wanthahs' this would be easy to do. > > > Due to the recent "rename local()" and "can't return an

wantarray() should be named wantlist() (was Re: date interface (was Re: perl6 requirements, on bootstrap))

2000-08-03 Thread Tad McClellan
On Thu, Aug 03, 2000 at 10:53:02AM +0100, Hildo Biersma wrote: > If functions could distinguish between > 'wantarray' and 'wanthahs' this would be easy to do. Due to the recent "rename local()" and "can't return an array" discussions here, we should also consider "rename wantarray()" as well.