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

Misc extensions improvements #71

Merged
merged 8 commits into from
Nov 3, 2023
Merged

Misc extensions improvements #71

merged 8 commits into from
Nov 3, 2023

Conversation

ZacSweers
Copy link
Collaborator

This adds a number of improvements to extensions

  • Deprecate old fold() functions and introduce new ones that use the underlying value rather than Success. This was an oversight in the previous implementation. Binary compatibility is preserved.
  • Mark functions inline where possible to allow carried over context (i.e. in suspend functions, etc)
  • Use contracts to inform the compiler about possible calls to lambdas.

@ZacSweers ZacSweers merged commit 096eb2f into main Nov 3, 2023
3 checks passed
@ZacSweers ZacSweers deleted the z/moreExtensionWork branch November 3, 2023 20:51
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