Motivation: in complex expressions where the same calculation result may be used more than once it expression may become monstrous because of copy-pastes of the same sub-expression, and also this causes multiple evaluations of the same value.
To prevent that let's add support of local variables that may be defined in that way:
var a = 5; var b = fromContext*2; b>a ? b : a
To keep full backward compatibility variables syntax should be controlled via LambdaParser.AllowVars property (false by default).
Motivation: in complex expressions where the same calculation result may be used more than once it expression may become monstrous because of copy-pastes of the same sub-expression, and also this causes multiple evaluations of the same value.
To prevent that let's add support of local variables that may be defined in that way:
To keep full backward compatibility variables syntax should be controlled via
LambdaParser.AllowVars
property (false by default).