You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is just a minor complaint/suggestion that I have. Otherwise, enjoying the book very much so far!
I have a problem with the naming of the State class, i.e.
caseclassState[S, +A](run: S=> (A, S))
I'm not sure why it's called State when it refers to an action. In the text it's also referred to as action. Wouldn't it be better if it was simply called Action? Also, run would be applied to an action, rather than a state.
I was finding this part of the book very confusing when every function signature is misleading and I have to constantly remind myself each time I see State that it's not a state, but an action (transition, transformation). I must admit that the content is already hard to grasp for me and this made it even harder. When I replaced every occurrence of State with Action it made everything much clearer.
Once again, love the book, thank you very much!
The text was updated successfully, but these errors were encountered:
Not a big deal, and maybe this is the idiomatic name, but I have to agree that I experienced the same. My written notes say "would be better named StateTransition" pointing at the State type definition.
Thanks for the slideshare above, will check it out!
This is just a minor complaint/suggestion that I have. Otherwise, enjoying the book very much so far!
I have a problem with the naming of the
State
class, i.e.I'm not sure why it's called
State
when it refers to an action. In the text it's also referred to as action. Wouldn't it be better if it was simply calledAction
? Also,run
would be applied to an action, rather than a state.I was finding this part of the book very confusing when every function signature is misleading and I have to constantly remind myself each time I see
State
that it's not a state, but an action (transition, transformation). I must admit that the content is already hard to grasp for me and this made it even harder. When I replaced every occurrence ofState
withAction
it made everything much clearer.Once again, love the book, thank you very much!
The text was updated successfully, but these errors were encountered: