Sergii, not every interaction with the "UserInfo" module needs to go
through a function called "update". Just because the top-level Elm
architecture uses a single update function and a single view function does
not mean that you should automatically mirror this setup throughout your
program. As Richard points out, trying to do this leads to awkward design
problems that don't need to exist.

Also... I don't know what a triplet is. The only place I've heard that word
is referring to a three-member tuple. What do you mean when you use it?



On Tue, Nov 29, 2016 at 6:45 AM, <sergii.kamens...@zalando.de> wrote:

> @Rupert Smith
> Your module for pub/sub looks great! I will be useful for a lot of people
> like me. I think you should publish it.
> Can you add a README or provide few examples how to use it properly?
>
> @Nick H
> I also thought about this
>
>> type Action = Loaded | UserInfo UserInfo.Action | Ratings Ratings.Action
>>
> But then I should also change this
>  Cmd.map UserInfo effect
> to
>  Cmd.map effect
> and in UserInfo.update use global actions everywhere. And this also brakes
> encapsulation, so I cannot use
> this triplet in my other apps with different main action type.
>
>
> --
> 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 elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to