Skip to content

Commit 0c0b38a

Browse files
committed
Fix link to the pipe operator
1 parent 82defbf commit 0c0b38a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/blog/the-perfect-bug-report.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Elm is already quite a small language, but there are a few oddities that seem to
159159
160160
- **Backticks** — ``buyMilk `andThen` dipCookie`` used to mean the same thing as `andThen buyMilk dipCookie`. This was in Elm since the beginning, so problems like “backticks look like single quotes” were overlooked. More recently, we noticed that everything nice about backticks is nicer with [the `|>` operator][pipe]. By flipping the arguments to `andThen`, we can write `buyMilk |> andThen dipCookie`. This reads nicely, it is easy to chain, it works well with `onError`, *and* it does not require any special syntax. It just builds on existing knowledge!
161161
162-
[pipe]: http://package.elm-lang.org/packages/elm-lang/core/4.0.5/Basics#|>
162+
[pipe]: http://package.elm-lang.org/packages/elm-lang/core/4.0.5/Basics#|>
163163
164164
Again, all these cases are covered in more detail in [the migration guide][upgrade], and `elm-format` will handle most of these cases automatically. Folks using the 0.18 alpha reported that the upgrade was quite smooth, so feel free to ask for help on [the Elm slack][slack]. The Elm community is friendly and happy to help!
165165

0 commit comments

Comments
 (0)