News for hackers. Stuff that matters.
Re:Elm at Prezi by tieTYT on Wednesday May 29, 2013 @04:10PM (#5788764)
> it's surprising how often you _don't_ need a debugger in a _functional language_

I disagree. That may be true in Haskell because it's static and the compiler finds a lot of problems.

This isn't true for all functional languages though. I REALLY want a debugger in Clojure code and it's pretty functional*.

Re:Elm at Prezi by alipang on Wednesday May 29, 2013 @04:33PM (#5788883)
Clojure is a great language, but there really is a difference between functional and "pretty" functional; e.g. as in, I know 100% sure that this function has no side-effects.

Static typing can do a lot of good, but the stricter semantics of Haskell also goes a long way into writing code with fewer bugs.

Re:Elm at Prezi by mercurial on Thursday May 30, 2013 @01:41AM (#5791115)
Nobody can agree on the definition of a functional language. AFAIK, so-called "functional" languages like F# or O-Camel allow arbitrary side effects, unlike Haskell.
Re:Elm at Prezi by mtrimpe on Thursday May 30, 2013 @04:18AM (#5791455)
That's why you'd call Haskell a 'purely functional' language.
Re:Elm at Prezi by 0xdeadbeefbabe on Thursday May 30, 2013 @04:37PM (#5795056)
Any function changes the state of your machine, and you have to pretend your computer doesn't have memory or registers in order for this pure function side effect free stuff to make sense. When you said "know 100%" my ability to accept abstractions like that turned off.
Re:Elm at Prezi by tieTYT on Thursday May 30, 2013 @11:20PM (#5796641)
IMO, that has nothing to do with it. Especially because you often do know 100% that this function has no side-effects.

It's because with Haskell you find a ton of errors at compile time and Clojure finds most issues at runtime.

Re:Elm at Prezi by 0xdeadbeefbabe on Wednesday May 29, 2013 @04:57PM (#5789032)
bah side effects what useful thing can you do without side effects? The only way to have no side effects is to frame the problem in a certain way.
Re:Elm at Prezi by alipang on Wednesday May 29, 2013 @05:19PM (#5789174)
Haskell has support for side-effects. It's just able to state the property that something is a 100% pure function, and also makes it very easy to write such code a lot of the time.