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

Re: Embracing functions with parentheses

by Vynce (Friar)
on Mar 16, 2005 at 10:04 UTC ( #439893=note: print w/replies, xml ) Need Help??


in reply to Embracing functions with parentheses

I have often wanted a good single perl style guide -- like the MLA or something, but for perl -- but it just can't be done to enough people's satisfaction.

I personally tend to end up with lots o' parens, and if needed I break them up on multiple lines. (sometimes! i swear!)

I think this qestion is one where really, context can matter a lot. do what's right for the situation -- but if you're having to add tons of parens to clarify a precedence issue, consider making it more than one visual line, if not more than one conceptual line. yeah, your code may be a litle faster if you skip a few assignments to temp variables -- but do you care that much?
.

  • Comment on Re: Embracing functions with parentheses

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://439893]
help
Chatterbox?
[Eily]: Hi monks o/
[choroba]: 3 PM in Vietnam, BTW
Discipulus maybe a wrong impression..
[karlgoethebier]: Discipulus: Workshops are for weenies ;-)
[Discipulus]: here 43C high umidity, tiger mosquitos, violence in the street.. everywhere is vietnam
[karlgoethebier]: OK, i'm socially unacceptable
[karlgoethebier]: Discipulus: Were the hell are you today?
[Discipulus]: ..or suitable for the presidence ;=)
[Discipulus]: at Caput Mundi
[marto]: choroba, have you moved to Vietnam or just there for a while?

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2017-06-27 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (600 votes). Check out past polls.