Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 musing on the Monastery: (8)
As of 2014-08-22 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (168 votes), past polls