-
Is there a reason why there is the |
Beta Was this translation helpful? Give feedback.
Answered by
ivanceras
Apr 2, 2022
Replies: 1 comment 1 reply
-
I think it could be done with a separate |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
flosse
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think it could be done with a separate
view
andupdate
function, but I thinkApplication
trait is simpler and easy to work with. Theview
andupdate
will need to have the sameMsg
object that needs to be passed around anyway, combining them together in one trait makes it more intuitive.Do you have a use-case where the
view
andupdate
need to be free standing functions?