Skip to content

allow shortcut begin end syntax inside match and if then else#2744

Merged
EmileTrotignon merged 5 commits intoocaml-ppx:mainfrom
EmileTrotignon:match-beginend-match
Dec 2, 2025
Merged

allow shortcut begin end syntax inside match and if then else#2744
EmileTrotignon merged 5 commits intoocaml-ppx:mainfrom
EmileTrotignon:match-beginend-match

Conversation

@EmileTrotignon
Copy link
Collaborator

Instead of

match () with
| () -> begin
    match () with
    | () ->
  end
end

you get

match () with
| () ->
    begin match () with
    | () ->
    end
end

Same thing with if-then-else

Loading
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.

2 participants