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
On a personal note, I never was overly fond of the longer, but not multi-line, it leaves a lot of room for interpretation what "longer" is.
My proposal would be to remove the rule and add a further restriction to If cond, e1 and e2 are short, simply write them on one line:, that e1 or e2 cannot be an if/then/else itself.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 8c09996f-24ac-cf39-ef43-d7909cbc2b89
Version Independent ID: 1efdd523-8552-6421-e149-74f76826ef8f
Hello,
I believe I found a weakness in the rule:
If either cond, e1 or e2 are longer, but not multi-line:
if
e1
is also aSynExpr.IfThenElse
it can lead to a compiler error.Related Fantomas bug: fsprojects/fantomas#1243
was transformed to
On a personal note, I never was overly fond of the
longer, but not multi-line
, it leaves a lot of room for interpretation what "longer" is.My proposal would be to remove the rule and add a further restriction to
If cond, e1 and e2 are short, simply write them on one line:
, thate1
ore2
cannot be an if/then/else itself.Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: