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

Allow final semicolons everywhere #3039

Open
lukaszcz opened this issue Sep 13, 2024 · 0 comments
Open

Allow final semicolons everywhere #3039

lukaszcz opened this issue Sep 13, 2024 · 0 comments

Comments

@lukaszcz
Copy link
Collaborator

We've discussed that it's more convenient to always allow final semicolons and format to insert them for consistency (except perhaps when the separated thing fits on a single line).

So we would have:

mk@{
  a := 1;
  b := 2;
}

and

[
 1;
 2;
 3;
]

but

[1; 2; 3]

and

case x of
| mk@{a := 1; b := 2} := ..

if the semicolon-separated list is formatted on a single line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant