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

Add support for closures #2

Open
ecton opened this issue Feb 13, 2024 · 0 comments
Open

Add support for closures #2

ecton opened this issue Feb 13, 2024 · 0 comments

Comments

@ecton
Copy link
Member

ecton commented Feb 13, 2024

These closures will capture at the time of function declaration. This ensures that a closure can be returned from a function without worrying about references.

This is fine for reference types, but for primitives it can be unexpected. For primitives, the best approach may be opt-in boxing (#1).

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

No branches or pull requests

1 participant