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

Re: Thoughts on replacing -> with .

by Ralesk (Pilgrim)
on Jun 12, 2013 at 11:14 UTC ( #1038429=note: print w/replies, xml ) Need Help??


in reply to Thoughts on replacing -> with .

A very definite no from me too.

I agree with most points brought up above, especially the cognitive burden one and the havoc of ~= versus =~.

Replies are listed 'Best First'.
Re^2: Thoughts on replacing -> with .
by Corion (Pope) on Jun 12, 2013 at 11:19 UTC

    Note that =~ and ~= are both valid Perl already.

      Hmm, I don’t see ~= in perlop; and ~ is the unary bitwise negation operator, so it wouldn’t make much sense to have ~=. What is it?

        It is like += and .=, which modify the left-hand side by the right hand side.

        $a += $b adds the right hand side ($b) to the left hand side, $a, and assigns the result to $a.

        $a .= $b appends $b to $a and assigns the result to $a.

        $a ~= $b xor's $b and $a and assigns the result to $a.

        As this is a relatively uncommon use, it maybe makes this interchange currently even harder to spot than later the use of =~ and ~=.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038429]
help
Chatterbox?
[Corion]: 1nickt: I imagine (heh) that Agile done somewhat right will make the process (and why we postpone things) somewhat more explicit to the outsider, or at least the "who do we ask to postpone X"

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-12-11 12:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (290 votes). Check out past polls.

    Notices?