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

Fix #858 Inconsistent empty splat assignment #860

Merged
merged 1 commit into from
Mar 2, 2016

Conversation

summivox
Copy link
Contributor

See #858

TL;DR: [a, ..., b, c, d] = [1 2 3] should behave the same as [a, ...m, b, c, d]

See gkz#858

TL;DR: `[a, ..., b, c, d] = [1 2 3]` should behave the same as `[a, ...m, b, c, d]`
\ ? #{ util \slice }.call(#rite, #i, #ivar)
\ : (#ivar = #i, [])"
val = switch
| skip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you change this from an if to a switch?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This patch is separated from summivox/LiveScript@e6591cfe35 . No particular reason other than that (again lazy 😪 )

Should I change it back to if?

@vendethiel
Copy link
Contributor

Thanks!

vendethiel added a commit that referenced this pull request Mar 2, 2016
Fix #858 Inconsistent empty splat assignment
@vendethiel vendethiel merged commit 62a8eb5 into gkz:master Mar 2, 2016
@vendethiel
Copy link
Contributor

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants