Alex Rivera | Logout

What is declarative programming?

Asked 2008-09-24T20:15:26.857
193

I keep hearing this term tossed around in several different contexts. What is it?

Edit
Report

1 Answer

6

imagine an excel page. With columns populated with formulas to calculate you tax return.

All the logic is done declared in the cells, the order of the calculation is by determine by formula itself rather than procedurally.

That is sort of what declarative programming is all about. You declare the problem space and the solution rather than the flow of the program.

Prolog is the only declarative language I've use. It requires a different kind of thinking but it's good to learn if just to expose you to something other than the typical procedural programming language.

answered 2008-09-24T22:47:15.947

Your Answer