News for hackers. Stuff that matters.
Re:Functional Programming in 5 Minutes by Peaker on Sunday May 19, 2013 @05:06PM (#5734385)
I think recursive solutions are often very nice indeed. But at worst, recursive solutions are sometimes worse than structured loops, because you can use recursions very much like a free-style goto, allowing your code to have even less restrictive structure than loops. That's why directly recursive code is usually discouraged and reusing recursive combinators is encouraged.

I agree that purity is often used as a buzzword.

To parody this, Conal Elliott wrote the "C is purely functional" blog post: http://conal.net/blog/posts/the-c-language-is-purely-functio...

To resolve this, a nice suggestion is to use the term "denotative programming". That is, programming where types and values have mathematically simple denotations that predictably compose exactly according to the syntactic composition being used.

Re:Functional Programming in 5 Minutes by a-nikolaev on Sunday May 19, 2013 @05:49PM (#5734544)
Thanks for the idea of "denotative programming". I think, it can be a really nice paradigm for teaching programming and math together.