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

Inserting missing spaces #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions content/posts/type-extensions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ let list = [
Person.create "John" "Johnson";
Person.create "Jack" "Jackson"]

//get all the full names at once
// get all the full names at once
list |> List.map fullName
```

Expand All @@ -522,11 +522,11 @@ let list = [
Person.create "John" "Johnson";
Person.create "Jack" "Jackson"]

//get all the full names at once
// get all the full names at once
list |> List.map (fun p -> p.FullName)
```

And this is just a simple example. Object methods don't compose well, are hard to pipe, and so on.

So, a plea for those of you new to functionally programming. Don't use methods at all if you can, especially when you are learning.
They are a crutch that will stop you getting the full benefit from functional programming.
They are a crutch that will stop you getting the full benefit from functional programming.