3 ms·
Functional programming, by definition, is expressing a program as a function to be evaluated. That implies that, at least to some extent, all functional program
by Chris_Newton 14y ago
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.
- rayiner 14y agoI 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."
- jberryman 14y ago> I don't think there is one uniform definition of functional programming. Only because people are lazy in their words and thinking.
- PnuklOEvolu 14y agoI agree people never evaluate the function early enough, glad I'm not one.