develooper Front page | perl.perl6.language | Postings from May 2005

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

Thread Previous | Thread Next
From:
Autrijus Tang
Date:
May 22, 2005 21:31
Subject:
Re: foo(1: 2: 3: 4:) ?
Message ID:
20050523043028.GB56298@aut.dyndns.org
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 from a maintainability point-of-view.

In that case:

    $w.handle_event($e: $m);

should be illegal as well, right?

That is, the App (functional application) form always zero or one
invocants, and it is illegal to specify more than one.

Thanks,
/Autrijus/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About