Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^6: Operator precedence

by Tux (Abbot)
on Jan 20, 2013 at 15:35 UTC ( #1014296=note: print w/replies, xml ) Need Help??

in reply to Re^5: Operator precedence
in thread Operator precedence

All evenly confusing, as my mind hates statement modifiers. I try to prevent using them as long as possible. To me statement if expression; reads as utter crap. I prefer reading expression and statement;. YMMV. I completely realize not all our minds work the same, so any other reader might be confused the other way round. Mixing these will hurt both.

The only statement modifier I am comfortable with is for in simple expressions like s{\s+$}{} for @foo;.

Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^7: Operator precedence
by BrowserUk (Pope) on Jan 20, 2013 at 17:01 UTC
    To me statement if expression; reads as utter crap.

    Hm. I find 'Pick up a bottle of duty free Scotch if you have time' and 'If you have time, pick up a bottle of duty free Scotch' completely interchangeable.

    And 'beat the egg whites until they form soft peaks', infinitely preferable to 'until they form soft peaks; beat the egg whites';

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      With the Scotch example, I definitely prefer the second sentence. With the first, my hopes on a good single malt are trashed when hitting "if" :)

      until in there is a loop condition, not a single point of decision condition. Maybe that is what is important to my brain. The condition is most likely checked several times. My native language however is not English, so that might be of influence.

      Enjoy, Have FUN! H.Merijn

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014296]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2018-05-21 02:27 GMT
Find Nodes?
    Voting Booth?