Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20

by ysth (Canon)
on Dec 02, 2013 at 01:25 UTC ( [id://1065200]=note: print w/replies, xml ) Need Help??


in reply to Re: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20
in thread use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20

Because it makes (some) code easier to read left-to-right, with no mental notes to figure out what is being dereferenced later on. It's really that simple.
--
A math joke: r = | |csc(θ)|+|sec(θ)| |-| |csc(θ)|-|sec(θ)| |

Replies are listed 'Best First'.
Re^3: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20
by BrowserUk (Patriarch) on Dec 02, 2013 at 02:24 UTC
    easier to read left-to-right

    In the absence of evidence, opinion is ...


    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.

      You were somehow expecting an answer to your "Why?" that didn't involve opinion?

      --
      A math joke: r = | |csc(θ)|+|sec(θ)| |-| |csc(θ)|-|sec(θ)| |
        You were somehow expecting an answer to your "Why?" that didn't involve opinion?

        No. I was expecting a justifiction to back up the opinion expressed. You gave none.

        Start with: <lvalue(s)> = @{ <some reference expression> };

        I contend that:

        • One thing you want to know is: "Where are the value(s) being assigned coming from?":

          And the above expression it is easy to see that: "it's getting the values by dereferencing and array ref".

        • Only then do you think about: "Where is it getting the array ref from?"

          Which you get by examining the (simple or complex) expression contained.

        This new syntax: <lvalue(s)> = <some reference expression>->@*; forces you to skip to the end to work out what is going on.

        That's an opinion backed by reason.


        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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-03-19 08:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found