<html><body bgcolor="#FFFFFF"><div>Yes, and I don't think we want to take readability cues from Perl. :)<br><br>GreG</div><div><br>On Sep 23, 2010, at 3:03, Wolfgang Laun &lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>On 23 September 2010 09:31, Bruno Unna <span dir="ltr">&lt;<a href="mailto:bruno.unna@gmail.com"><a href="mailto:bruno.unna@gmail.com">bruno.unna@gmail.com</a></a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="">FWIW: in Perl, there are both operators as well (|| and 'or'). However, they are *not* exactly the same. Although they can be used in any context to render a boolean expression, their priority makes the difference. Taken from official documentation&nbsp;(<a href="http://bit.ly/dgw4GT" target="_blank"><a href="http://bit.ly/dgw4GT">http://bit.ly/dgw4GT</a></a>):<div>
<br></div></div></blockquote><div><br>Low precedence "and", "or", "xor" were introduced to permit "Perl poetry", or, more seriously, to<br>permit control flow using a logical expression, especially after function calls without parentheses. <br>
&nbsp;&nbsp; see Naples or die;&nbsp; # same as: see(Napes) || die(); but not: see(Naples || die() );<br><br>No way this makes any sense in Drools.<br><br>-W<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><div></div><div><blockquote type="cite">Binary "or" returns the logical disjunction of the two surrounding
expressions.  It's equivalent to || except for the very low precedence.
This makes it useful for control flow.</blockquote></div><div><br></div><div>Nonetheless, it must be taken into account that the distinction makes sense for a Perl programmer. For a rules-writing guy (or girl) perhaps the distinction is extremely obscure.</div>
<div><br></div><div>Regards.<br><div><br></div><br></div></div></blockquote></div><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>rules-dev mailing list</span><br><span><a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a></span><br></div></blockquote><br>

      </body></html>