News for hackers. Stuff that matters.
Re:Where FP meets OO by Denommus on Monday December 29, 2014 @10:20AM (#8810087)
Functional Programming is just composing a program with pure functions, nothing else.

Immutability and closures are required for that, because mutability may break homoiconicity (which is required for purity), and lack of closures means you can't pass state around.

Higher-kinded types are very useful for helping with lots of functional abstractions, but they are a type system feature and have nothing to do with FP. If someone claims that, this person doesn't understand FP or type systems.

OCaml and Standard ML are two examples of languages without higher kinded types but are just as good as Haskell for FP.

(Although they have a powerful module system to compensate for that).

Re:Where FP meets OO by abathologist on Monday December 29, 2014 @11:07AM (#8810305)
> they are a type system feature and have nothing to do with FP

I suggested in a sibling reply that the use of type-theoretic notions in FP is a natural out growth of the initial motives of the FP paradigm. While I wouldn't think that FP languages must incorporate type-theoretic notions, it does seem to me fitting that many would, since type systems have been involved with the functional understanding of computation since quite early on. Do think that line of reasoning make sense?

Re:Where FP meets OO by the_af on Monday December 29, 2014 @11:05AM (#8810291)
> because mutability may break homoiconicity (which is required for purity)

Are you sure you meant that? My (admittedly weak) understanding of homoiconicity is that it's unrelated to either purity or (im)mutability. Isn't homoiconicity related to the program text and its AST? Aren't there languages such as Haskell which encourage pure functions but are not homoiconic?

I'm pretty sure you meant something else...

Re:Where FP meets OO by abathologist on Monday December 29, 2014 @11:10AM (#8810314)
I bet "referentiality" was meant. It would make sense as a replacement for "homoiconicity".
Re:Where FP meets OO by abathologist on Monday December 29, 2014 @12:34PM (#8810757)
I bet "referential transparency" was meant. It would make sense as a replacement for "referentiality". oops :(
Re:Where FP meets OO by Denommus on Monday December 29, 2014 @12:36PM (#8810770)
Yes, that's what I meant, I don't know why I got it wrong.
Re:Where FP meets OO by dragonwriter on Monday December 29, 2014 @11:13AM (#8810328)
Mutability directly breaks purity whether or not it breaks homoiconicity. This should be obvious because on of the best known and oldest FP language families is both homoiconic and impure due to mutation (the Lisp family.) So homoiconicity is a non-sequitur.