# Why not use: update fn state = fn state

**URL:** <https://discourse.elm-lang.org/t/why-not-use-update-fn-state-fn-state/7037>\
**Category:** Learn\
**Created:** [March 3, 2021, 1:31pm UTC](https://discourse.elm-lang.org/t/why-not-use-update-fn-state-fn-state/7037 "2021-03-03T13:31:06Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![DullBananas](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/dullbananas/32/3709_2.png) [@DullBananas](https://discourse.elm-lang.org/u/DullBananas)\
**Post date:** [March 3, 2021, 6:08pm UTC](https://discourse.elm-lang.org/t/why-not-use-update-fn-state-fn-state/7037/8 "2021-03-03T18:08:36Z")

</div>

you might find this useful

> [@Messages purpose](https://discourse.elm-lang.org/t/messages-purpose/6778):
>
> Why does TEA use separate msg type and uptate function? Why not just pass model -\> (model, Cmd) functions to Html

---

_[View the full topic](https://discourse.elm-lang.org/t/why-not-use-update-fn-state-fn-state/7037)._
