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
I noticed that all parts of an && expression are eagerly evaluated, e.g. a != null && a.smth will throw an error when a is null. (This is exspecially problematic with the elvis operator not working #623 .
Proposed configuration syntax
No changes, just change the evaluation to only evaluate the rest of an expression if it is actually relevant.
if a prior value is true ignore the rest for ||
if a prior value is false ignore the rest for &&
Additional context
Noticed this when my implementation here didn't actually work: #622 (comment) due to throwing null exceptions
The text was updated successfully, but these errors were encountered:
Description of the requested feature
I noticed that all parts of an
&&
expression are eagerly evaluated, e.g.a != null && a.smth
will throw an error whena
is null. (This is exspecially problematic with the elvis operator not working #623 .Proposed configuration syntax
No changes, just change the evaluation to only evaluate the rest of an expression if it is actually relevant.
true
ignore the rest for||
false
ignore the rest for&&
Additional context
Noticed this when my implementation here didn't actually work: #622 (comment) due to throwing null exceptions
The text was updated successfully, but these errors were encountered: