# Function equality

**URL:** <https://discourse.elm-lang.org/t/function-equality/7538>\
**Category:** Learn\
**Created:** [July 12, 2021, 4:32pm UTC](https://discourse.elm-lang.org/t/function-equality/7538 "2021-07-12T16:32:21Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![lpil](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/lpil/32/3139_2.png) [@lpil](https://discourse.elm-lang.org/u/lpil)\
**Post date:** [July 19, 2021, 6:48am UTC](https://discourse.elm-lang.org/t/function-equality/7538/18 "2021-07-19T06:48:36Z")

</div>

> [@pd-andy](#):
>
> Elm already compromises on its “no runtime error” guarantee with function equality, I’d rather it compromised on `==` 's integrity and just said all functions are false unless referentially equal.

I think this would be a more practical trade-off. Using reference equality in this one case seems less surprising and less likely to cause production problems to me.

---

_[View the full topic](https://discourse.elm-lang.org/t/function-equality/7538)._
