I think that's perfectly fine. I did it in an experiment I was playing with and it worked well.
On Mon, Jun 13, 2016 at 10:09 AM 诺铁 <[email protected]> wrote: > for example, in the http example > <https://github.com/evancz/elm-architecture-tutorial/blob/master/examples/5-http.elm>, > the >> >> getRandomGif : String -> Cmd Msg > > can be sent to init function as a parameter, then call this parameter > function in the update function, this might make it easier to test update > function, and totally separate the component from the program. > > -- > 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. > -- 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.
