For the first major release of ocamlformat we would like to reduce the number of options in ocamlformat, mainly to ease the code maintainance, but also to tend forward less different styles out there.
We have some ideas of which options to remove (deprecate first), but we would like to have the feedback of our users before making changes that you can be unhappy with.
break-string-literals: how the string literals are broken down (never, on newlines, wrapping at the margin, or on newlines and wrapping at the margin). We changed the default value, it was “wrapping at the margin”, it is now “break on newlines and wrapping at the margin”. We plan to remove this option and only keep the new default behavior.
extension-sugar: either preserve the syntax from the source file, or always use the sugared syntax. For example
[%ext match x with () -> ()]would be rewritten as
match%ext x with () -> (). The default value is to preserve the original syntax, but we are thinking it would be better to always use the sugared syntax when possible instead, thus changing the default and removing this option.
Any feedback is welcomed.