AVSystem / scex

Extensible, fast and secure Scala expression evaluation engine
MIT License
21 stars 4 forks source link

Separate typed and default dynamic variables usage #16

Closed bgrochal closed 2 years ago

bgrochal commented 2 years ago

This MR provides an ability to use typed dynamic context variables solely, with no fallback to DynamicVariableAccessor. That might be useful for instance to check variable existence during expression validation.

Backwards compatible - to retain current behaviour, set com.avsystem.scex.ExpressionProfile#dynamicVariablesEnabled = true.

ghik commented 2 years ago

Thanks a lot!