I don't say ~> is bad, I just want every new grammar/op adding during perl5 evolved should keep consistent.
Too late. Tilde already has a full house of contextual overloads:
print ~'fred';; ÖìÜø print ~12345;; 18446744073709539270 print ~( 2 != 2 );; 18446744073709551615 print ~~( '2' eq '2' );; 1 ~\'fred';; ¼╝¥│¥¡Î¤ç═ã╩פÃÍ
One more is neither here nor there.
In reply to Re^4: What operator should perl5porters use for safe dereferencing?
by BrowserUk
in thread What operator should perl5porters use for safe dereferencing?
by de-merphq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |