v1.17.0
#771
Replies: 1 comment
-
@antonmedv, thanks to you and all the team taking care of Expr for your outstanding job ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Expr is a Go-centric expression language designed to deliver dynamic configurations with unparalleled accuracy,
safety, and speed.
In this release:
This release added the biggest change to the Expr language: if-else expressions and sequential expressions. #736 e750878
A sequence of expression may be separated by
;
char. The last semicolon must be omitted. Expr returns the value of thelast expression in the sequence.
If-else is also expressions. Each
if
must have anelse
part. Result of if-else can be used as an expression:Added:
ast.Find
helper for easy AST searching. 579de74uniq()
builtin (Add uniq() function #705)flatten()
builtin (add flatten function #684)Improvements:
len()
return runes count for string e8bd7f8Fixes:
filter() | map()
if#index
is used 35bdb68This discussion was created from the release v1.17.0.
Beta Was this translation helpful? Give feedback.
All reactions