Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2015-07-31 21:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (282 votes), past polls