Skip to content

Commit

Permalink
Bit more information about difference to with
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerfulstoic authored Feb 8, 2023
1 parent fd3df80 commit 1d1d3fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ The `with` clause in Elixir is a way to specify a pattern-matched ["happy path"]
* ...returned from the `with` (if no `else` is given)
* ...given to a series of pattern matches (using `else`)

`with` also doesn't `rescue` or `catch` for you.
`with` also doesn't `rescue` or `catch` for you (for better or worse, the usefulness of that depends on the situation).

`step_wise` requires that each step be either an `{:ok, _}` or `{:error, _}` pattern.


## `StepWise`

Expand Down

0 comments on commit 1d1d3fe

Please sign in to comment.