Skip to content

Backward operator with lambda  #39

@lucasteles

Description

@lucasteles

There is some cases that looks more natural to keep the lambda argument definition at the same level of backpipe operator

testCase "foo" <| fun _ ->
    let subject = true
    Expect.isTrue subject "I compute, therefore I am."

Today I think that the accepted way would be only:

testCase "foo"
<| fun _ ->
  let subject = true
  Expect.isTrue subject "I compute, therefore I am."

This form gives a more "function body" look to some expressions, which plays well with this kind of definitions (eg. Expecto)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions