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 gotcha #83

Closed
odino opened this Issue Dec 26, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@odino
Copy link
Collaborator

odino commented Dec 26, 2018

When running this

x = "10"
[a] = [100]

the parser sees: x = "10"[a] since [ is a valid infix operator. We should make sure that, when on a new line, index expressions get truncated. This is not the easiest thing since the parser skips newlines by default, but it's definitely doable.

@odino odino added the bug label Dec 26, 2018

@odino odino added this to the preview-3 milestone Dec 26, 2018

@odino odino added the help wanted label Dec 27, 2018

@odino odino closed this in a785b1b Dec 29, 2018

odino added a commit that referenced this issue Dec 29, 2018

Merge pull request #96 from abs-lang/destructuring-gotchas
Fixed destructuring gotchas, closes #83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment