Replies: 2 comments 1 reply
-
I believe it's due to the functional roots from the Elm Architecture where immutability is preferred. Personally I will have functions that use pointer receivers in a |
Beta Was this translation helpful? Give feedback.
1 reply
-
but it also works with pointers, thus i'm curious about the thoughts behind this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i was wondering why all
tea.Model
's have theirInit
,Update
andView
methods as value receivers instead of pointer receivers (which leads to returning thetea.Model
after each call toUpdate
). any particular reasons behind this design choice?PS: sorry if i've not spotted any obvious reasons.
Beta Was this translation helpful? Give feedback.
All reactions