[stringtemplate-interest] "Or" and "And" operators in conditionnal always evaluate both operands ?
Damien Urruty
lepilache at hotmail.com
Thu Sep 15 06:01:03 PDT 2011
Hello,
I can see that if we use && and || operands in conditionnals, both operands are always evaluated, even if not necessary. For exemple, I have :
<if(a && b)>...<endif>
In my case, a is null, so it is not necessary to evaluate the second argument, right ? Shouldn't the evaluation stop when such a case is encountered ? It is the same for <if(a || b)> with a not null.
Maybe I miss something, thanks for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20110915/b1cd9130/attachment.html
More information about the stringtemplate-interest
mailing list