in reply to Perl 6 - Operator renaming

PHP also uses -> for method calls, and although it is looking more and more like Java, AFAIK they aren't going to drop $foo->bar()

Replies are listed 'Best First'.
Re^2: Perl 6 - Operator renaming
by blazar (Canon) on Sep 02, 2005 at 16:14 UTC
    However Perl6 will need it for another purpose, i.e. for "pointy subs", which may be a better choice especially from the huffmanization point of view. Also, do you imagine something like
    $bar ->= nextitem;
    or
    @newstuff = map { ->method } @stuff;
    ?!?

    Speaking of pointy subs and of their parameters, I find it to be quite interesting that the syntax resembles much that of my old faithful HP-28s pocket calculator (HP48*'s one should be practically identical), which happen to be an entirely coincidental fact, as Larry Wall himslef clarified in Re: Q: re C<< -> >>.