Just another Perl shrine | |
PerlMonks |
Re: What operator should perl5porters use for safe dereferencing?by davido (Cardinal) |
on May 29, 2012 at 18:17 UTC ( [id://973083]=note: print w/replies, xml ) | Need Help?? |
We have the // and //= operators which work like a 'defined' short circuit, otherwise emulating || and ||=. On your list of options I don't see ones that kind of stand out as being of similar encoding: //->, and -//> The concerns are that they start looking like the closing side of a markup tag, and that the version I like the most would become Perl's only four-contiguous-character non-alpha operator (that I can think of). What I don't like with respect to any of the ~ options is that they feel like they should be doing some form of matching: pattern, smart, or even dereferencing-lookup matching (which is what -> already does as it scans the inheritance tree). Dave
In Section
Past Polls
|
|