You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It intrigues me how indenting of arguments work in hindent. The following snippets are already formatted with hindent 5.2.3 and I have no way to hint it to other formatting (no matter what I do, it gets formatted that)
function::Arg->Arg->Arg->Arg->Arg->Result
function reallyLongArgument1 reallyLongArgument2 reallyLongArgument3 lastReallyLongArgumentAtTheEnd whyIsThisNotBreaking =undefined
Note that all arguments are in one line and are not broken even if the line is over 120 chars long
It even gets worse with Records in arguments: They seem to break, however this is not convenient (for me)
All 3 cases are quite weirdly indented. Is this intentional?
For me, the current workaround is to use RecordWildCards because then, the arguments are not as long.
Note that the next record constructor is further indented than the first and the implementation (here: undefined is after the = with no possibility for a break, since it fits the line-length
It intrigues me how indenting of arguments work in hindent. The following snippets are already formatted with hindent 5.2.3 and I have no way to hint it to other formatting (no matter what I do, it gets formatted that)
Note that all arguments are in one line and are not broken even if the line is over 120 chars long
It even gets worse with Records in arguments: They seem to break, however this is not convenient (for me)
All 3 cases are quite weirdly indented. Is this intentional?
For me, the current workaround is to use RecordWildCards because then, the arguments are not as long.
Note that the record is broken on the record fields but then, the last argument follows the bracket.
Note that the next record constructor is further indented than the first and the implementation (here:
undefined
is after the=
with no possibility for a break, since it fits the line-lengthHere, it is clear that record-constructors are indented further and further.
I would like some line-breaking of the arguments. Is there some standard on this?
The text was updated successfully, but these errors were encountered: