Non-allocating lambdas #562
Closed
marcinjahn
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Yep, good idea. We probably have methods other than |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Looking through the code, I see that various methods accept lambdas, and there is no mechanism to avoid closure allocations.
Example:
I think it'd be nice if there was an overload like:
Then, my example could be turned into:
What do you think about it? The naming I used (bag) might not be the best, maybe there's some better name for it.
Beta Was this translation helpful? Give feedback.
All reactions