Re: [elm-discuss] This may be a problem of thinking, instead of implementing

2016-05-15 Thread Peter Damoc
Hi Nandiin, It is not clear for me what are you actually trying to accomplish here. I understand that you want the synchronization but it is not clear what would a satisfying solution would be. I somehow think you might want side-effects where by side-effects I mean have a piece of state (the sha

Re: [elm-discuss] Re: What does the ! operator do?

2016-05-15 Thread Peter Damoc
This is exactly what it is. It takes a value and a list and returns a tuple with the value and the command resulted from batching that list. I used to have a similar function back in 0.16 days noFx model = (model, Effects.none) and I would have used it like SomeAction -> noFx {model |...}

Re: [elm-discuss] Re: Random in 0.17 and purity

2016-05-15 Thread Richard Feldman
> > Elm doesn't have "no side effects", it has managed side effects. But if > there's no Task or Cmd or Sub in the type, you can be sure that the > function is side-effect free. This way, when there's problems with > side-effects, it's easy to track down which functions are causing them, > sin

[elm-discuss] Re: Random in 0.17 and purity

2016-05-15 Thread Max Goldstein
*nonverbal frustration* ... isn't that what I said? it might return (model, Cmd 1) or (model,Cmd 2) It always makes the same command, but the command might do different things. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe

Re: [elm-discuss] Re: Date.now

2016-05-15 Thread David Acevedo
Thank you Aaron you just saved me hours of trying to make it work. -- 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

Re: [elm-discuss] Re: Date.now

2016-05-15 Thread Aaron VonderHaar
Tasks and Cmds are just data that described an asynchronous action that will be executed outside of your program. As far as I know, Tasks and Cmds will not run in the repl. So you won't be able to see the result of Date.now in the repl. On Sun, May 15, 2016 at 6:56 PM, David Acevedo wrote: > T

[elm-discuss] Re: Random in 0.17 and purity

2016-05-15 Thread David Legard
Many thanks for the clarification -- the concept is much clearer to me now. -- 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.c