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
> if (want 'hash') { return %hash } # rather than eq
I like this alot.
-Nate
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
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
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';
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
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.
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
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.