Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
mirashii
1y ago
0 comments
Share
Now you need a general purpose embedded language interpreter to express your filter lambda? I'm not sure you've really made anything simpler.
0 comments
default
newest
oldest
rowanG077
1y ago
I don't see why you want an embedded interpreter for this. Can you explain?
tempodox
1y ago
If you give a lambda to cargo-watch instead of a regexp, it has to be evaluated. Hence interpreter.
rowanG077
1y ago
Why would you evaluate it using an interpreter? Since you are using it in the context of a rust lambda you compile it. You just have a rust file that calls cargo-watch as a library. Crafting an interpreter seems like an incredibly bad idea.
1 more reply
j
/
k
navigate · click thread line to collapse