3 ms·
>> The promise was that, as in the article, you 'Say what you want, not how you want it done.' That is the promise of declarative programming, in general. Prol
by YeGoblynQueenne 10y ago
>> The promise was that, as in the article, you 'Say what you want, not how you want it done.'
That is the promise of declarative programming, in general. Prolog is a logic programming language that is also declarative. Its primary "promise", insofar as it makes any promises, is to allow the use of first-order logic as a programming language. In that, it delivers in spades, more so than any other language (and even other logic programming languages are largely based on Horn clauses).
The reason Prolog is held up as an example of declarative programming is because it's one of the best realisations of that paradigm- or in any case it's one of the few such languages one can do actual programming in (as opposed to, say, xml or html).
Prolog's name however stands for "PROgrammation en LOgique", not "PROgrammation DEclarative".
In that sense it's pretty unfair to blame Prolog for not being a perfect declarative language, or for not keeping any other promises it never made.