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

Destructuring nil and undefined #34

Closed
lilactown opened this issue Aug 17, 2022 · 1 comment
Closed

Destructuring nil and undefined #34

lilactown opened this issue Aug 17, 2022 · 1 comment

Comments

@lilactown
Copy link
Collaborator

lilactown commented Aug 17, 2022

Currently the following fails:

(let [[foo bar] nil]
  foo)

This currently emits calls to nth, which tries to access the indices on the null value.

I think we can fix this by special casing null in nth.

Semi-related to #9

@borkdude
Copy link
Member

Yes, sounds good.

borkdude added a commit that referenced this issue Dec 24, 2022
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

2 participants