expr
expr copied to clipboard
Expression language and expression evaluation for Go
# Problem There are a few minor extensibility issues with the current implementation: - **A visitor cannot stop `ast.Walk`**: even if it finished its work it will still run for...
Hi, thank you for your work and for reading. I found that arithmetic operations choose architecture-dependant types in some circumstances and can cause overflows in 32bit architectures. ## Example Given...
In some cases auto-deref is not working. - Map access `{foo: bar}[ptr]`, where ptr is `*string` - Cond `ptr ? 1 : 0`, where ptr is `*bool`
### 📝Bug Description The conf.Env() function panics when passed a pointer to a map (e.g., *map[string]any ) instead of a direct map value. However, from the code perspective, the pointer...
I wouldn't say that this is a bug, but an unexpected behaviour I have come across: `let x = "test"; x?.[0:1]` Returns "t", as expected. `let x = nil; x?.[0:1]`...
**Short description**: `expr.ConstExpr` requires that the given function was defined in the environment and does not take into account those functions defined with `expr.Function`. **Why it matters**: This prevents usage...