DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=29550>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29550 [JEXL] Implement short-circuit boolean evaluation Summary: [JEXL] Implement short-circuit boolean evaluation Product: Commons Version: Nightly Builds Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: JEXL AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The current implementation of ASTAndNode and ASTOrNode will evaluation both sides of an expression before returning a result. I think most developers these days seem to expect the RHS of an AND/OR expression to be ignored if the LHS is sufficient to determine the result (e.g. if A=>true, "A or B"=>true, regardless of B). The patches appear to be trivial - if a committer is interested & thinks it worthwhile I'll create them. (btw, the old Turbo Pascal compiler described this optimisation as "short circuit boolean evaluation"; I'm not sure if that is a common name for it.) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
