-
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. |
Beta Was this translation helpful? Give feedback.
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.User The |
Beta Was this translation helpful? Give feedback.
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
get
built-in keep it's type information. It's a special built-in and have a special handling in type check.