-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some expression might be evaluated several times #11
Comments
Correct, it will be expanded multiple times, as per the readme. Expanding it into a function call like you suggest would solve the problem, In general I find that piping like this mostly only makes sense for single inputs. This package is kinda in end-of-life, I might be willing to entertain such a PR, if it came with benchmarks showing no performance regressions, Alternatively, consider some of the alternative packages |
I found an another case of this bug: |
Should the benchmark contain only the macro expansion, or also the optimization? |
I think more end to end. |
Now
macroexpand(Main, :(@pipe a|>f|>g(_,_,b)))
would be expanded as:(g(f(a), f(a), b))
.I think it should be more appreciated to be expanded as something like
The text was updated successfully, but these errors were encountered: