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

Improve begin/end position in match branches #2442

Closed
wants to merge 2 commits into from

Conversation

gpetiot
Copy link
Collaborator

@gpetiot gpetiot commented Sep 18, 2023

Fix #2438

The same thing would need to be done for if-then-else constructs so maybe some factorization would be in order.

@gpetiot gpetiot requested a review from Julow September 18, 2023 14:07
Copy link
Collaborator

@Julow Julow left a comment

Choose a reason for hiding this comment

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

This is not an improvement. The previous formatting was intended.

@Julow
Copy link
Collaborator

Julow commented Sep 18, 2023

I believe #2438 is in fact asking for a new option.

| B -> fooooooooooooo
| C -> fooooooooooooo
| D -> fooooooooooooo
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

This shows that for many values of break-cases, the end is aligned with the | of the pattern, which is ambiguous.

@gpetiot
Copy link
Collaborator Author

gpetiot commented Oct 11, 2023

I'm not sure having yet-another-option is good in this case. We will do something nice for the diff-friendly profile and hope people stop using the other ones when they notice it.
Anyway closing this PR until we get a plan.

@gpetiot gpetiot closed this Oct 11, 2023
@gpetiot gpetiot deleted the improve-begin-end-in-match branch October 11, 2023 01:58
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.

Feature request: provide option for begin to align with end
2 participants