Skip to content

Application vs. free standing functions #59

Answered by ivanceras
flosse asked this question in Q&A
Discussion options

You must be logged in to vote

I think it could be done with a separate view and update function, but I think Application trait is simpler and easy to work with. The view and update will need to have the same Msg 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 and update need to be free standing functions?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@flosse
Comment options

Answer selected by flosse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants