News for hackers. Stuff that matters.
Re:A Year of Functional Programming by vram22 on Monday June 09, 2014 @03:11PM (#7869930)
>- static typing;

I'm not an expert on the theory or design of programming languages, but isn't static typing orthogonal to FP?

Re:A Year of Functional Programming by _Robbie on Monday June 09, 2014 @03:54PM (#7870134)
I will discuss Haskell, since I am not very familiar with other FP languages. In Haskell static typing is more useful than in other languages. This is because in Haskell the type signature of a function gives an upper bound of what the function does. In an impure language, a function may change any accessible mutable values and/or perform IO. These possible side effects mean that in an impure language the type of a function is a very weak indicator of what the function actually does.
Re:A Year of Functional Programming by vram22 on Monday June 09, 2014 @04:21PM (#7870271)
So you're saying that static typing helps FP and hence is sort of a part of it?

Thanks for the answer.

Re:A Year of Functional Programming by noelwelsh on Monday June 09, 2014 @04:24PM (#7870280)
Yes and no.

A lot of the action in modern programming languages is in type systems. Static typing is synonymous with the dominant group of programming languages that subscribe to the "functional" label. There are other languages, such as Scheme, that are not statically typed that also subscribe to this label but they don't have the same mindshare at present.

It's important to keep in mind that FP does not name some formally defined concept like the number 3 or the function cos. Rather it's a name given to a group of people and programming languages that share a common ancestry and world view. The definition is fuzzy and can be split many ways.

Re:A Year of Functional Programming by vram22 on Monday June 09, 2014 @04:43PM (#7870385)
Interesting, thanks.

>It's important to keep in mind that FP does not name some formally defined concept like the number 3 or the function cos.

Got it.