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

Function captures: [] vs nil #3

Open
rmolinari opened this issue Apr 3, 2023 · 0 comments
Open

Function captures: [] vs nil #3

rmolinari opened this issue Apr 3, 2023 · 0 comments

Comments

@rmolinari
Copy link
Owner

Function captures have some tricky corner cases. See the README for some details.

Check how a returned value of [] is handled.

  • Has an empty array been captured?
  • Or has nothing been captured?

If the latter, is there any difference between [] and nil? If there is no difference, can we separate them to gain better overall semantics?

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