Skip to content

Lazy multiline parenthesis expression #24977

@nojaf

Description

@nojaf

Hello, I'm wondering what the recommended way is to write a multiline lazy expression.

let v =
    lazy (
        // some code
        // other code
        myFunctionCall x y z
    )

Should it follow the function application rule and be something like

lazy
    (multlilineExpression)

or does it follow the Formatting constructors, static members, and member invocations rule?

lazy (
    multilineExpression
)

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.


Associated WorkItem - 495673

Metadata

Metadata

Labels

📌 seQUESTeredIdentifies that an issue has been imported into Quest.dotnet-fsharp/svcin-prThis issue will be closed (fixed) by an active pull request.okr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions