|
One of the examples on the playground is which is very sleek and elegant. However, what would be even more convenient is Is there anything I'm missing to make this work? There's but now you're losing type-safety, I suppose. |
Answered by
antonmedv
Apr 6, 2025
Replies: 1 comment 3 replies
|
In Expr, pipes designed to always work with function. Expr parser checks if there is a function call after a pipe. This approach simplifies a lot of things and makes syntax consistent. One way to solve it is to use variables. let user = tweets | find(.Content contains "Hello");
user.UserThe |
3 replies
Answer selected by
stephanos
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Expr, pipes designed to always work with function. Expr parser checks if there is a function call after a pipe. This approach simplifies a lot of things and makes syntax consistent.
One way to solve it is to use variables.
The
getbuilt-in keep it's type information. It's a special built-in and have a special handling in type check.