Skip to content

Generate an Apply function for partial application#818

Merged
tautropfli merged 3 commits intomainfrom
discard-apply-source-gen
Jan 28, 2025
Merged

Generate an Apply function for partial application#818
tautropfli merged 3 commits intomainfrom
discard-apply-source-gen

Conversation

@tautropfli
Copy link
Member

This PR takes the ideas from #702 and implements them using a source-generator.
I went with 4 maximum parameters for now. Adding more just explodes the number of overloads :)

@tautropfli tautropfli force-pushed the discard-apply-source-gen branch from cac1645 to 2a56281 Compare January 27, 2025 14:08
@tautropfli tautropfli force-pushed the discard-apply-source-gen branch from 2a56281 to 09b3ba1 Compare January 27, 2025 14:19
@tautropfli tautropfli merged commit 8abe1ac into main Jan 28, 2025
9 checks passed
@tautropfli tautropfli deleted the discard-apply-source-gen branch January 28, 2025 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants