Re: sub my_zip (...?) {}

2005-06-17 Thread Larry Wall
On Thu, Jun 16, 2005 at 10:28:26PM +, Luke Palmer wrote: : You know, before I read this part of the message, I was thinking : precisely that. Nullary splat should do it, so that @foo[*] will : work. Unary splat would of course get our favor if it can be : interpreted that way, but in cases

Re: sub my_zip (...?) {}

2005-06-16 Thread Larry Wall
On Thu, Jun 16, 2005 at 05:40:31PM +0800, Autrijus Tang wrote: : Currently in Pugs *zip has no signature -- it simply rewrites its : arguments into the listfix (i.e. Y) function. : : That is bad because it can't be introspected, and you can't define : something like that yourself. It also makes

Re: sub my_zip (...?) {}

2005-06-16 Thread Gaal Yahas
[Sent off-group by mistake. On #perl6 the impression was that now Pipe is becoming a Role for things that can lazily be read from; and thus any filehandle or lazy list fulfills them. Larry, please help us understand if this is the case.] On Thu, Jun 16, 2005 at 08:53:41AM -0700, Larry Wall wrote:

Re: sub my_zip (...?) {}

2005-06-16 Thread Smylers
Larry Wall writes: This does imply that we can pipe into a subscript somehow. Why? Or rather, why is that desirable? If we choose something like () for our placeholder meaning pipe into this location, then @[EMAIL PROTECTED]; @b; @c] is the same as @foo[()] == @a == @b ==

Re: sub my_zip (...?) {}

2005-06-16 Thread Larry Wall
On Thu, Jun 16, 2005 at 07:24:42PM +0300, Gaal Yahas wrote: : [Sent off-group by mistake. On #perl6 the impression was that now Pipe : is becoming a Role for things that can lazily be read from; and thus any : filehandle or lazy list fulfills them. Larry, please help us understand : if this is the

Re: sub my_zip (...?) {}

2005-06-16 Thread Dave Whipp
Larry Wall wrote: You must specify @foo[[;[EMAIL PROTECTED] or @foo[()] == @bar to get the special mark. I'm uncomfortable with the specific syntax of @a[()] because generated code might sometimes want to generate an empty list, and special-casing that sort of thing is always a pain (and

Re: sub my_zip (...?) {}

2005-06-16 Thread Larry Wall
On Thu, Jun 16, 2005 at 01:05:22PM -0700, Dave Whipp wrote: : Larry Wall wrote: : You must : specify @foo[[;[EMAIL PROTECTED] or @foo[()] == @bar to get the special mark. : : I'm uncomfortable with the specific syntax of @a[()] because generated : code might sometimes want to generate an

Re: sub my_zip (...?) {}

2005-06-16 Thread Luke Palmer
On 6/16/05, Larry Wall [EMAIL PROTECTED] wrote: Or maybe a splat @foo[*] Or go with the parens with something in them to indicate the positive absence of something. @foo[(*)] Anyone else want to have a go at this bikeshed? You know, before I read this part of the message, I