Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 rifling through the Monastery: (7)
As of 2014-12-28 14:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (181 votes), past polls