<?xml version="1.0" encoding="windows-1252"?>
<node id="960282" title="Re: Perl5 Language Extension: Definedness-Triggered Shortcut Operators" created="2012-03-18 07:57:56" updated="2012-03-18 07:57:56">
<type id="11">
note</type>
<author id="524457">
martin</author>
<data>
<field name="doctext">
&lt;p&gt;One syntactical alternative I could think of is:
&lt;code&gt;
A &amp;&amp;&amp; B   # defined-and
A ||| B   # defined-or
A &gt;&gt;&gt; B   # safe arrow
&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;This would be a systematic approach reminiscent of the role of &lt;i&gt;undef&lt;/i&gt; in ternary logic -- triple sign, third kind of truth value involved.
&lt;/p&gt;
&lt;p&gt;I am not sure whether a whole lot of other similar symbols like &lt;tt&gt;^^^&lt;/tt&gt; would make as much sense, though, which means we then had to explain why &lt;em&gt;only&lt;/em&gt; those mentioned above were there.
&lt;/p&gt;</field>
<field name="root_node">
960147</field>
<field name="parent_node">
960147</field>
</data>
</node>
