No, I'm not looking for examples in Elm necessarily, I'm looking for 
realistic problems that are solved in a simple way with observables so that 
we can figure out how to solve them in Elm and if we need some additional 
language constructs or libraries to be able to solve them. There may very 
well be a case for some kind of asynchronous stream construct, but it's not 
at all obvious that we should use the same construct as for instance RxJS.

Like the double click or swipe example, but with a more complicated state. 
The state for double click and swipe is pretty simple to model in Elm, it's 
just a matter of saving the time of click and the number of clicks.
Even if Elm would have kept it's signals, they were not the kind of 
observables you have in RxJS. For asynchronous messages you have to use 
Commands/Tasks anyway.

Den fredag 10 mars 2017 kl. 11:16:18 UTC+1 skrev Răzvan Cosmin Rădulescu:
>
> Well they are not "needed" the way that C is not "needed" over assembler 
> for example.
>
> Reactive observables are what high level programming is to low level 
> programming. That's how I see it at least. They shine only when you need to 
> deal with time, if you only need to work on current state/values then 
> they're not that useful. But since Elm tires to be a frontend 
> framework/language for me at least having reactive objets subs very natural.
>
> You mean to give your actual practical examples in Elm? I'm afraid I'm to 
> new to the language to be able to do that, I'll have to think about it for 
> a while. That's why I'm giving examples in JS where we have lots of them 
> and cycles.js for example is very similar to the Elm architecture except 
> it's entirely based on reactive objects.
>
> In any case, I'll try to think of how one might create such things in Elm 
> and see if I can come up with practical examples
>
>

-- 
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.

Reply via email to