Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: What operator should perl5porters use for safe dereferencing?

by ikegami (Pope)
on May 30, 2012 at 16:06 UTC ( #973329=note: print w/ replies, xml ) Need Help??


in reply to Re^2: What operator should perl5porters use for safe dereferencing?
in thread What operator should perl5porters use for safe dereferencing?

That eliminates ~> as far as I'm concerned. Way too similar to ->.


Comment on Re^3: What operator should perl5porters use for safe dereferencing?
Select or Download Code
Re^4: What operator should perl5porters use for safe dereferencing?
by Tanktalus (Canon) on May 30, 2012 at 16:34 UTC

    The main problem I have with ~> is the change in shift key. The ~ is on the left side of the keyboard (at least my US-style keyboard), so touch typists will use the right shift key. > is on the right, thus the use of the left shift key. tchrist's "Twister" moniker comes in to play here - try typing it out a few times to see how easy/difficult it is. Maybe for hunt-and-peck typists there won't be much difference. For touch typists, we could come up with an alternative that was less discordant (such as ->>).

    The fact that a quick glance at code wouldn't always tell the difference between -> and ~> is, in my opinion, both a positive and a negative. Positive in that they are so tightly related and often that's good enough, but negative in having to mentally switch gears to actually pay attention and notice it when it matters.

      Hmm, maybe Iím using my keyboard wrong, but Iím one of those people who more often than not use the right shift (the left being tiny due to the European style 102-key key layout). Even if I had a preference for the left shift key though, the thing would be the same: press shift, press one of the keys, press the other key with the other hand, release shift. If anything, -> is ever so slightly harder to type because the precise timing needed between the two keystrokes, whereas ~>ís both characters are on the same shift level on English layouts at least.

      My problem with ~> is that on certain font sizes with certain fonts and certain hinting settings, FreeType makes the tilde look like a straight bar.

        Hmm, I learned touch typing, but I no longer venture past qwerty by touch, even now that I've lost my numpad -- kinda weird
      An excellent point. I hope it gets taken into consideration.


      - Boldra

        I used to love typing on those :) I also really liked how the mouse was plugged into the keyboard in the PS/2 version, making it a much more comfortable experience than PCs at the time with not-long-enough mouse cables to reach the box on the ground.

      The ~ is on the left side of the keyboard (at least my US-style keyboard), so touch typists will use the right shift key...

      There are people who use the right shift key? Seriously?

      Huh. I use the right shift key about as often as the right alt and right ctrl keys -- which is to say, somebody could sabotage those keys as an April Fools joke so that pressing them does nothing, and it could be five years or more before I notice, depending on when I finally get around to cleaning out my keyboard thoroughly (as opposed to just quickly running an ISO long narrow object between the keys to get most of the hair out, which is what I usually do).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2014-04-20 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls