Re:Functional thinking: Why functional programming is on the...
by rayiner on Tuesday January 29, 2013 @02:12PM
(#5135656)
What is your third point if not functional programming?
[ Parent
| on HN ]
Re:Functional thinking: Why functional programming is on the...
by Chris_Newton on Tuesday January 29, 2013 @02:27PM
(#5135726)
Functional programming, by definition, is expressing a program as a function to be evaluated. That implies that, at least to some extent, all functional programs are written in a declarative style.
However, we use a declarative style for other kinds of language as well: Prolog, SQL and CSS are three very different examples, none of which is a functional programming language similar to ML or Haskell or Clojure.
Re:Functional thinking: Why functional programming is on the...
by rayiner on Tuesday January 29, 2013 @02:31PM
(#5135751)
I don't think there is one uniform definition of functional programming. It's a vague characteristic of a language in the same sense as "object oriented."
Re:Functional thinking: Why functional programming is on the...
by jberryman on Tuesday January 29, 2013 @06:57PM
(#5137218)
> I don't think there is one uniform definition of functional programming.
Only because people are lazy in their words and thinking.
Re:Functional thinking: Why functional programming is on the...
by PnuklOEvolu on Wednesday January 30, 2013 @11:36AM
(#5140242)
I agree people never evaluate the function early enough, glad I'm not one.
Re:Functional thinking: Why functional programming is on the...
by ufo on Tuesday January 29, 2013 @02:19PM
(#5135688)
declarative vs imperative is kind of a subjective thing but functional programming is not the only way to do declarative programming (logic programming and SQL are two examples that come to mind)