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

LSTS tuple destructuring #1259

Closed
alex-s168 opened this issue Feb 14, 2025 · 1 comment · Fixed by #1274
Closed

LSTS tuple destructuring #1259

alex-s168 opened this issue Feb 14, 2025 · 1 comment · Fixed by #1274

Comments

@alex-s168
Copy link
Contributor

alex-s168 commented Feb 14, 2025

I want to be able to do this:

(a, let b) = Tuple { 1, 2 }

(useful for things like parsing: (toks, let expr) = parse-expr(toks); or pop() from a vector: (v, let x) = v.pop()

@andrew-johnson-4
Copy link
Owner

I have seen this too. Mixing assignment with let bindings during destructuring.

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 a pull request may close this issue.

2 participants