Skip to content
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

Support method chaining without closure #2

Open
McRaeAlex opened this issue Nov 5, 2020 · 0 comments
Open

Support method chaining without closure #2

McRaeAlex opened this issue Nov 5, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@McRaeAlex
Copy link
Owner

When using pipe! it works well with functions however often you need a combination of methods and functions. In order to make this clean and not rely on multiple pipe! invokations we should support using the unit type () in place of the value.

pipe!(val, func(), ().method())

It may not bee needed however as these methods could just be chained onto the previous function call.

pipe!(val, func().method())

unsure if this is worth implementing or not. I think if I continue using the macro and it becomes an issue I will change it.

@McRaeAlex McRaeAlex added enhancement New feature or request good first issue Good for newcomers labels Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant