Re: [elm-discuss] Re: Functional programming, or why should I use Elm instead of vanilla javaScript?

2016-10-07 Thread John Orford
what's the betting, typescript3 implements immutable data structures, and everyone will be cooing about them (like they are know with non-nullable types ; ) imo, immutability is the biggest missing feature in js... On Fri, 7 Oct 2016 at 00:06 Zinggi wrote: > > And all

[elm-discuss] Re: Functional programming, or why should I use Elm instead of vanilla javaScript?

2016-10-06 Thread Zinggi
> And all this stuff about immutability, can be easily achieved in plain javaScript. You claim that you can achieve all the the things that elm does by being disciplined enough, but that's not true. Here are a few things that only elm can provide that JavaScript can't. These things are only

Re: [elm-discuss] Re: Functional programming, or why should I use Elm instead of vanilla javaScript?

2016-10-06 Thread Joey Eremondi
You can get good code without Elm's type system, but what you won't get is a compiler as an assistant. Made a small typo? The compiler tells you. Mixed up the first and second arguments to a function? Usually a type error, so the compiler tells you. Most importantly, refactoring becomes easy.