Skip to content

Commit

Permalink
Update ReadMe.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiasnordqvist authored Oct 31, 2024
1 parent ead8b6c commit 9f5995d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Results/DotNetThoughts.Results/ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Inspired by scott wlaschins talks about railway oriented programming and functional domain modeling, I decided to implement a Result type in c#.
This post explains a lot: https://fsharpforfunandprofit.com/posts/elevated-world/
I know lang-ext library already has something similar, but I found the library hard to understand and use, so I decided to make an implementation that fits my needs better.
I know lang-ext library already has something similar, but I found the library hard to understand and use, so I decided to make my own implementation, as a way of learning.

# The Result type

Expand Down Expand Up @@ -271,7 +271,7 @@ You can chain Or-calls like this:
Result<(TA, TB, TC)> result = A().Or(B()).Or(C());
```

However, since there is no relation between A, B and C really, I´d prefer to use the static OrResult-method instead:
However, since there is no relation between A, B and C really, I´d prefer to use the static OrResult-method instead:

```csharp
Result<(TA, TB, TC)> result = OrResult(A(), B(), C());
Expand Down

0 comments on commit 9f5995d

Please sign in to comment.