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

Make blocks legal right-hand sides for assignment #351

Closed
frostburn opened this issue Jun 17, 2024 · 0 comments · Fixed by #352
Closed

Make blocks legal right-hand sides for assignment #351

frostburn opened this issue Jun 17, 2024 · 0 comments · Fixed by #352
Labels
enhancement New feature or request

Comments

@frostburn
Copy link
Member

const arr = {
  2
  1
  3
  sort()
}
(* arr = [1, 2, 3] *)
@frostburn frostburn added the enhancement New feature or request label Jun 17, 2024
@frostburn frostburn linked a pull request Jun 17, 2024 that will close this issue
frostburn added a commit that referenced this issue Jun 18, 2024
Make blocks legal expressions evaluating to arrays

Make return statements legal in block expressions to evaluate to something else.
Reserve set literal syntax.

ref #351

Co-authored-by: inthar-raven <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant