Skip to content

Commit

Permalink
what forbidden location to choose section +
Browse files Browse the repository at this point in the history
  • Loading branch information
lue-bird committed Jul 20, 2023
1 parent 730005d commit 3fc57fe
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/EqualsCaseable.elm
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,18 @@ not reported
False
)
### What should I choose?
If `(\a -> a.something == Variant)` etc is a very common pattern
in your code base, you'll have an easier time
converting all the `if`s first.
To get the discussed benefits like "Now the compiler will tell me all the places I need to make a new decision",
you do need to refactor all these equality checks.
Your goal should be `EqualsCaseable.forbid Everywhere`
-}
type ForbiddenLocation
= InIf
Expand Down

0 comments on commit 3fc57fe

Please sign in to comment.