Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TheBackwardPipeOperatorCanAlsoHelpWithGrouping - Add De-Emphasis Note? #105

Open
JustinGrote opened this issue Nov 9, 2021 · 0 comments

Comments

@JustinGrote
Copy link
Contributor

JustinGrote commented Nov 9, 2021

Don Syme, etc. have mentioned the backward pipe is now considered bad practice (like backticks in Powershell), so should this koan have a note that this pattern is discouraged in favor of pipelining and that typically you would do this instead?

    [<Koan>]
    let TheBackwardPipeOperatorCanAlsoHelpWithGrouping() =
        let add x y =
            x + y

        let double x =
            x * 2

        let result =
            add 5 8
            |> double

        AssertEquality result 26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant