Wow, this is awesome Mark! Thanks! This would really further improve and simplify the solution.
It seems I am just scratching the surface/ beginning to understand. In another further exploration (based on Richard's talk), I found that putting the Destination in an opaque type also forced me to define setters and getters, which helped too to make things simpler. Even with such a relatively simple example of dependent selectors, I realize that making-impossible-states-impossible is only the start. For me at least, after that, not everything falls in place automatically, but I still need to carefully think about how to weave stuff together in update and view. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
