Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^6: Perl 6 implementation of the following Perl 5 code

by chromatic (Archbishop)
on May 27, 2013 at 15:48 UTC ( #1035431=note: print w/ replies, xml ) Need Help??


in reply to Re^5: Perl 6 implementation of the following Perl 5 code
in thread Perl 6 implementation of the following Perl 5 code

... such long chains of method calls tend to be rare in code I write...

In code you write, perhaps.

... to distinguish a method call on the previous term from a method call on $_.

How often does someone expect to chain methods and call a method on $_? Seems to me if you want to change the invocant from whatever the previous expression returned, you ought to make that method explicit, whether by typing it out by hand or terminating the entire statement so that it's not ambiguous at all.


Comment on Re^6: Perl 6 implementation of the following Perl 5 code
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1035431]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (15)
As of 2014-07-11 18:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (235 votes), past polls