|
|
|
|
|
by gopiandcode
1735 days ago
|
|
Declarative languages are characterised by having the programmer specify _what they want_ but not _how to get it_ (i.e to get a sorted list, you would specify that the elements are in increasing order, but not the specific algorithm to use). In contrast, functional languages are characterised by treating functions as first class values (amongst other things, but these are harder to summarise). Prolog for example is a declarative language, Haskell is a functional language. |
|
[0] https://en.wikipedia.org/wiki/Functional_programming