Should we enforce consistency of a final semicolon in parentheses or begin
/end
?
#619
Labels
language: ocaml
OCaml formatting issues
begin
/end
?
#619
As of 3964d3c, Topiary formats both:
and
as they are. (And same with
begin
/end
.)For the single-line style, Topiary formats:
and
as they are. (While we're at it, note the space after the last semi-colon.)
This makes me wonder whether we shouldn't enforce consistency of those styles, the same way we do it with records and lists, for instance. The style would therefore be:
for single-line, and:
for multi-line.
I am however a bit afraid that this might make aerated single-element parentheses very ugly, namely:
would always have to be:
and I think this would interact potentially very poorly with multi-line functions or matches as parameters, for instance. Any ideas? @aspiwack and @nbacquey in particular?
The text was updated successfully, but these errors were encountered: