in reply to Re: What operator should perl5porters use for safe dereferencing?
in thread What operator should perl5porters use for safe dereferencing?
I personally think that's preferable to a whole new operator; the idea is to make it work in much the same way that sending messages to nil does in Objective-C: it does nothing, and returns nil (which equivalences to 0 in numeric context). For Perl, it'd do nothing and return undef (in list context it'd return an empty list).$z = $not_defined->arbitrarymethod() Method not called at ...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: What operator should perl5porters use for safe dereferencing?
by phaylon (Curate) on May 31, 2012 at 14:58 UTC | |
by pemungkah (Priest) on Jun 01, 2012 at 05:40 UTC | |
by phaylon (Curate) on Jun 01, 2012 at 13:27 UTC | |
Re^3: What operator should perl5porters use for safe dereferencing?
by Anonymous Monk on Jun 08, 2012 at 19:11 UTC | |
by pemungkah (Priest) on Jun 08, 2012 at 21:33 UTC |