squint
squint copied to clipboard
Destructuring nil and undefined
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
Yes, sounds good.