Open g13013 opened 2 months ago
Hi @g13013
We are aware of this issue. About your proposed solution, what if the condition
depends on any let
variable? Would it makes sense to only evaluate the condition and any dependent variable?
In our experience, usually the condition can get complex then being able to create temporary let
variables would be good.
We are planning to improve the evaluation of variables, so we only evaluate needed parts.
@i4ki
We are aware of this issue. About your proposed solution, what if the condition depends on any let variable? Would it makes sense to only evaluate the condition and any dependent variable?
Even better, it makes a lot of sense and it would awesome to have this !
Is your feature request related to a problem? Please describe. The current behavior of the
lets
block is that it's evaluated all the time regardless of thecondition
result, this leads errors in some scenarios when lets block depends on whether the condition is true or false, the problem becomes more annoying when the lets bloc have many variables that depend on the same conditionexample
Describe the solution you'd like The
lets
block or any other block should not be evaluated if the condition is false