Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^9: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20 (hare/2)

by tye (Cardinal)
on Dec 11, 2013 at 17:26 UTC ( #1066665=note: print w/ replies, xml ) Need Help??


in reply to Re^8: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20 (why the downvotes?)
in thread use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20

Trying to split hairs is often unconvincing and then annoying to those who disagree.

- tye        


Comment on Re^9: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20 (hare/2)
Re^10: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20 (hare/2)
by ikegami (Pope) on Dec 11, 2013 at 20:25 UTC

    I don't call @... return a scalar or an array an exceedingly small difference from @... returning a list. I'm not even sure how the difference could be greater.

      I'm really not sure what you are talking about. But I even find this reply to be splitting hairs to declare "returning an array" substantially different from "returning a list". I have little clue what you even see as the distinction between those two.

      But I'll give you a hint: You may have interpreted the word "context" in a rather strict fashion, significantly changing the context in which these things had been being discussed (you also seem to be leaning heavily on some rather strict definition of "list" that you have failed to qualify, that I have seen). This appears to me to have dragged the conversational context from the realm of semantic hair splitting into technical detail hair splitting. And some might view that as trivializing things (even further than the trivial point they were at).

      I was already rather at a loss for how the semantic wrangling could be applied with much significance to the arguments for or against post-fix dereferencing syntax. I found myself quite at a loss for how to apply your response to those semantic wranglings and thus even more at a loss for how to find relevance in them it to what appears to me to be the thread topic.

      The closest I have come to understanding your response is to see it as (only implicitly, which makes it worse) splitting hairs on the definition of "the context in which that evaluation is effective" and also fairly tangential to the preceding discussion.

      I provide this much detail in my explanation in the hope that some of it will end up being enlightening to you, and not in an attempt to criticize.

      - tye        

        (you also seem to be leaning heavily on some rather strict definition of "list" that you have failed to qualify, that I have seen).

        The model supposedly broken by the change is that $ returns a scalar and @ returns a list[1]. I understood this to mean "a variable number of scalars". Is there another possibility?

        You may have interpreted the word "context" in a rather strict fashion

        My posts abolish the claim that introducing $a->@* "breaks the original model of sigils completely"[2], that model supposedly being that the sigil is an indicator of the the type of the value returned. It's not.

        To determine whether an expression starting with $ returns, one must also examine the rest of the expression and/or the context (in the larger sense). ($x vs @a = $x->(); vs $a = $x->();)

        To determine whether an expression starting with @ returns, one must also examine the context (in the larger sense). (@a = @x; vs $a = @x;)

        If I hadn't interpreted "context" narrowly, shmem would have been arguing against himself.[3]. Any splitting of hairs is in trying to understand his disagreement, for he has yet to mention which of my premises he disagrees with, and he has yet to point out a logic error.


        1. "I want the type of return (scalar or list) to be as close to the assignment operator as possible"
        2. "Except demerphq is mistaken. Perl5 sigils don't denote the type of result that will be returned."
        3. "I am with demerphq on that: It breaks the original model of sigils completely"

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2014-09-21 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls