Re: foo(1: 2: 3: 4:) ?

2005-05-22 Thread Autrijus Tang
On Fri, May 20, 2005 at 03:23:51PM +0800, Autrijus Tang wrote: So I'm finally starting to implement multi-level invocants in MMDs. I'd like to sanity check some cases first, though. Hmm, Warnocked? I'll assume this is sane, until told otherwise, then. :) Thanks, /Autrijus/ pgpMcfYh2xXmC.pgp

Re: foo(1: 2: 3: 4:) ?

2005-05-22 Thread Luke Palmer
On 5/20/05, Autrijus Tang [EMAIL PROTECTED] wrote: So I'm finally starting to implement multi-level invocants in MMDs. I'd like to sanity check some cases first, though. Dewarnocking time. Are these two assumed to be identical? multi sub foo ($x, $y) multi sub foo ($x, $y : )

Re: foo(1: 2: 3: 4:) ?

2005-05-22 Thread Damian Conway
Autrijus Tang wrote: Hmm, Warnocked? I'll assume this is sane, until told otherwise, then. :) Darn. I was hoping that Larry would field this one. In his absence, I'll take a swing at it. The usual all(any(@Larry), none($Larry)) caveats apply. So I'm finally starting to implement

Re: foo(1: 2: 3: 4:) ?

2005-05-22 Thread Damian Conway
Luke wrote: foo($a : $b : $c) foo($a : $b : $c : ) Hmm, I'm doubting that reflecting how many invocants you have on the caller side is a good idea. It seems awfully brittle in the face of reimplementation. Yep. And that's precisely why we previously ruled against colons in the call

Re: foo(1: 2: 3: 4:) ?

2005-05-22 Thread Autrijus Tang
On Mon, May 23, 2005 at 11:07:59AM +1000, Damian Conway wrote: Hmm, I'm doubting that reflecting how many invocants you have on the caller side is a good idea. It seems awfully brittle in the face of reimplementation. Yep. And that's precisely why we previously ruled against colons in the

Re: foo(1: 2: 3: 4:) ?

2005-05-22 Thread Damian Conway
Autrijus wrote: Err, wait. From S06: # Indirect multimethod call... handle_event $w, $e: $m; Is this single-dispatch? No. I think it's vestigial (or ought to be). Luke's argument against colons in multimethod calls is compelling from a maintainability point-of-view. Damian

Re: foo(1: 2: 3: 4:) ?

2005-05-22 Thread Autrijus Tang
On Mon, May 23, 2005 at 12:38:14PM +1000, Damian Conway wrote: Err, wait. From S06: # Indirect multimethod call... handle_event $w, $e: $m; Is this single-dispatch? No. I think it's vestigial (or ought to be). Luke's argument against colons in multimethod calls is compelling

Re: foo(1: 2: 3: 4:) ?

2005-05-22 Thread Damian Conway
Autrijus Tang wrote: In that case: $w.handle_event($e: $m); should be illegal as well, right? Right. That is, the App (functional application) form always zero or one invocants, and it is illegal to specify more than one. Right. Damian