Re: RFC 127 (v1) Sane resolution to large function returns

2000-09-10 Thread Glenn Linderman
Chaim Frenkel wrote: > > "GL" == Glenn Linderman <[EMAIL PROTECTED]> writes: > > GL> Chaim Frenkel wrote: > >> ($foo, $baz, @bar) = (1,(2,3),4) # $foo = 1 $baz=2, @bar=(3,4) > >> > >> Actually, looking at it like that makes it an ugly situation. The 'new' > >> expectation would be to have it

Re: RFC 127 (v1) Sane resolution to large function returns

2000-09-05 Thread Chaim Frenkel
> "GL" == Glenn Linderman <[EMAIL PROTECTED]> writes: GL> Chaim Frenkel wrote: >> ($foo, $baz, @bar) = (1,(2,3),4) # $foo = 1 $baz=2, @bar=(3,4) >> >> Actually, looking at it like that makes it an ugly situation. The 'new' >> expectation would be to have it become >> # $foo=1 $baz=2 @bar=(4)

Re: RFC 127 (v1) Sane resolution to large function returns

2000-08-24 Thread Chaim Frenkel
> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: DS> At 02:25 PM 8/24/00 -0400, Chaim Frenkel wrote: >> But >> >> ($foo, $baz, @bar) = (1,(2,3),4) # $foo = 1 $baz=2, @bar=(3,4) >> >> Actually, looking at it like that makes it an ugly situation. The 'new' >> expectation would be to have it

Re: RFC 127 (v1) Sane resolution to large function returns

2000-08-24 Thread Glenn Linderman
Chaim Frenkel wrote: > ($foo, $baz, @bar) = (1,(2,3),4) # $foo = 1 $baz=2, @bar=(3,4) > > Actually, looking at it like that makes it an ugly situation. The 'new' > expectation would be to have it become > # $foo=1 $baz=2 @bar=(4) Actually? How about it becoming

Re: RFC 127 (v1) Sane resolution to large function returns

2000-08-24 Thread Nick Ing-Simmons
Dan Sugalski <[EMAIL PROTECTED]> writes: >At 02:25 PM 8/24/00 -0400, Chaim Frenkel wrote: >>But >> >>($foo, $baz, @bar) = (1,(2,3),4) # $foo = 1 $baz=2, @bar=(3,4) >> >>Actually, looking at it like that makes it an ugly situation. The 'new' >>expectation would be to have it become >>

Re: RFC 127 (v1) Sane resolution to large function returns

2000-08-24 Thread Dan Sugalski
At 02:25 PM 8/24/00 -0400, Chaim Frenkel wrote: >But > >($foo, $baz, @bar) = (1,(2,3),4) # $foo = 1 $baz=2, @bar=(3,4) > >Actually, looking at it like that makes it an ugly situation. The 'new' >expectation would be to have it become > # $foo=1 $baz=2 @bar=(4) Woul

Re: RFC 127 (v1) Sane resolution to large function returns

2000-08-24 Thread Chaim Frenkel
I'm missing what you are trying to say. Are you suggesting that $foo = @bar no longer mean ($foo = scalar(@bar)) == 3 ? I wasn't suggesting going that far. Just a little more DWIM. So that ($foo, @bar, $baz) = (1,2,3) # $foo = 1 @bar=(2,3), $baz = undef # o

Re: RFC 127 (v1) Sane resolution to large function returns

2000-08-24 Thread Larry Wall
Chaim Frenkel writes: : LW> P.S. I think we *could* let @foo and %bar return an object ref in scalar : LW> context, as long as the object returned overloads itself to behave as : LW> arrays and hashes currently do in scalar context. : : Isn't this an internals issue? Not completely. The scalar

Re: RFC 127 (v1) Sane resolution to large function returns

2000-08-24 Thread Chaim Frenkel
> "LW" == Larry Wall <[EMAIL PROTECTED]> writes: LW> Dan Sugalski writes: LW> : And do we want to consider making this (and its ilk) Do The Right Thing? LW> : LW> :(@foo, @bar) = (@bar, @foo); LW> We certainly want to consider it, though perhaps not in -internals. LW> You can talk about

Re: RFC 127 (v1) Sane resolution to large function returns

2000-08-23 Thread Larry Wall
Dan Sugalski writes: : And do we want to consider making this (and its ilk) Do The Right Thing? : :(@foo, @bar) = (@bar, @foo); We certainly want to consider it, though perhaps not in -internals. You can talk about passing @bar and @foo around as lazy lists, and maybe even do lazy list-flatt