Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by BrowserUk (Patriarch)
on Dec 03, 2013 at 05:03 UTC ( [id://1065373]=note: print w/replies, xml ) Need Help??


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

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.

Replies are listed 'Best First'.
Re^6: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20
by ysth (Canon) on Dec 03, 2013 at 05:30 UTC
    Who said anything about =?
    --
    A math joke: r = | |csc(θ)|+|sec(θ)| |-| |csc(θ)|-|sec(θ)| |

      Um. I did!


      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://1065373]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-16 19:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found