Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Embracing functions with parentheses

by Zaxo (Archbishop)
on Mar 16, 2005 at 10:07 UTC ( #439894=note: print w/ replies, xml ) Need Help??


in reply to Embracing functions with parentheses

I tend to use as few parentheses as I can. The reason is that when I see them then I know they mean something. Usually they mean that I am overriding operator precedence, my $foo = ($bar + 1)/2;
or I need to terminate the argument list of a function or builtin, print map( {baz $_} @quux), ' results.', $/;
The effect is about like the style you describe, and I'm happy with it.

In general I try to follow perlstyle, but my efforts may show a few quirks.

After Compline,
Zaxo


Comment on Re: Embracing functions with parentheses
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2015-07-03 03:32 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 (48 votes), past polls