[stringtemplate-interest] "Or" and "And" operators in conditionnal always evaluate both operands ?
parrt at cs.usfca.edu
Fri Sep 16 10:28:07 PDT 2011
Hi. Since I'm very uncomfortable with the notion of allowing these operators in the first place, I saw no point in adding extra bytecodes and add complexity for no real value.
should not be throwing an exception in v4. It should simply be notifying the listener; if these errors bother you then have the listener ignore them. I believe that is a design choice we made: a.b for a missing b property simply notifies the listener.
On Sep 15, 2011, at 10:11 AM, Udo Borkowski wrote:
>> The point is this is entirely an implementation detail. There's no benefit
>> to documenting the semantics in a short circuit manner ...
> Right. I was talking about the implementation. I don't care, if this is externally documented. I was just surprised to read the current implementation does not use a short circuit implementation.
More information about the stringtemplate-interest