squint icon indicating copy to clipboard operation
squint copied to clipboard

Destructuring nil and undefined

Open lilactown opened this issue 2 years ago • 1 comments

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

lilactown avatar Aug 17 '22 15:08 lilactown

Yes, sounds good.

borkdude avatar Aug 17 '22 15:08 borkdude