commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Akolkar (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JEXL-12) [JEXL] Implement short-circuit boolean evaluation
Date Wed, 09 Aug 2006 04:35:19 GMT
     [ http://issues.apache.org/jira/browse/JEXL-12?page=all ]

Rahul Akolkar updated JEXL-12:
------------------------------

          Bugzilla Id:   (was: 29550)
        Fix Version/s: 1.0
    Affects Version/s:     (was: Nightly Builds)

> [JEXL] Implement short-circuit boolean evaluation
> -------------------------------------------------
>
>                 Key: JEXL-12
>                 URL: http://issues.apache.org/jira/browse/JEXL-12
>             Project: Commons JEXL
>          Issue Type: Improvement
>         Environment: Operating System: All
> Platform: All
>            Reporter: Matthew Firth
>            Priority: Minor
>             Fix For: 1.0
>
>         Attachments: short-circuit-eval.patch
>
>
> 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.)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message