-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Description
Current spec does not allow { ...a }.
You have to write { ...let a } (bind rest to a) or { ...(a) } (test rest with a, where a might be a custom matcher) depends on your intension.
I think we should also do this to { a, b: 1 } to disambiguate { a: a, b: 1 } (match with a) with { b: 1} and has "a" (has a property in it).
Currently, { a } means and has "a".
Or we can do the other way, allowing { ...a } to be { ...(a) }.
haltcase
Metadata
Metadata
Assignees
Labels
No labels