You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a condition {% if (a || b) && (c || d) %}, rinja ensures that the whole expressionP is a bool by (de)referencing as needed: *((&P) as &bool). I think it would be better if each term was "boolified" B:
This "boolification" should be done for the outmost term of a condition, and any nested conjuctions and disjuctions. Any sub-expression that is not …||…, …&&… or !… should end the recursive boolification.
In a condition
{% if (a || b) && (c || d) %}
, rinja ensures that the whole expressionP
is abool
by (de)referencing as needed:*((&P) as &bool)
. I think it would be better if each term was "boolified"B
:This "boolification" should be done for the outmost term of a condition, and any nested conjuctions and disjuctions. Any sub-expression that is not
…||…
,…&&…
or!…
should end the recursive boolification.Compare redlib-org/redlib#290.
The text was updated successfully, but these errors were encountered: