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
Following up on the previous issue, I'd like to see a small section about what to do with multiline body expressions in let and member bindings.
Example:
letfunctionName x y = a
if a is long or multiline it should be placed on the next line with an indent.
leta="""foobar, long string"""letb=async{return()// not following the other CE samples}letc={
Name ="Bilbo"
Age =112}letd=while f do
printfn "%A" x
From my (technical) point of view, the only a few SynExpr that can start right after the = sign and it strikes me as inconsistent to have these.
The only one I could find in the current guide is:
let recsizeLambda acc =function| Abs(x, body)-> sizeLambda (succ acc) body
| App(lam1, lam2)-> sizeLambda (sizeLambda acc lam1) lam2
| Var v -> succ acc
As MatchLambda is only 1 of 63 SynExpr cases, this just seems like not worth having.
The text was updated successfully, but these errors were encountered:
Following up on the previous issue, I'd like to see a small section about what to do with multiline body expressions in let and member bindings.
Example:
if a is long or multiline it should be placed on the next line with an indent.
regardless of what SynExpr a ends up being.
Some examples I consider bad:
From my (technical) point of view, the only a few SynExpr that can start right after the
=
sign and it strikes me as inconsistent to have these.The only one I could find in the current guide is:
As
MatchLambda
is only 1 of 63SynExpr
cases, this just seems like not worth having.The text was updated successfully, but these errors were encountered: