in reply to RFC: Perl5 Language Extension: Definedness-Triggered Shortcut Operators
One syntactical alternative I could think of is:
A &&& B # defined-and A ||| B # defined-or A >>> B # safe arrow
This would be a systematic approach reminiscent of the role of undef in ternary logic -- triple sign, third kind of truth value involved.
I am not sure whether a whole lot of other similar symbols like ^^^ would make as much sense, though, which means we then had to explain why only those mentioned above were there.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Perl5 Language Extension: Definedness-Triggered Shortcut Operators
by JavaFan (Canon) on Mar 18, 2012 at 12:20 UTC | |
by martin (Friar) on Mar 20, 2012 at 17:42 UTC | |
by tye (Sage) on Mar 20, 2012 at 19:18 UTC |
In Section
Meditations