Skip to content

Commit

Permalink
Merge pull request #3210 from roc-lang/jaredly-patch-1
Browse files Browse the repository at this point in the history
add a note about the Eq ability to the section on function equality
  • Loading branch information
ayazhafiz authored Dec 3, 2023
2 parents 0955efa + 9e6933a commit d545360
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ The first of these problems could be addressed by having function equality alway
Each of these designs makes Roc a language that's some combination of more error-prone, more confusing, and more
brittle to change. Disallowing function equality at compile time eliminates all of these drawbacks.

Note that you can provide a custom implementation of the `Eq` ability for an opaque type that contains a function,
in any way you like (including ignoring the function for equality).

## Why is there no way to specify "import everything this module exposes" in `imports`?

In [Elm](https://elm-lang.org), it's possible to import a module in a way that brings everything that module
Expand Down

0 comments on commit d545360

Please sign in to comment.