What is declarative programming?

declarative, glossary, programming-languages

Solution

Declarative programming is when you write your code in such a way that it describes what you want to do, and not how you want to do it. It is left up to the compiler to figure out the how.

Examples of declarative programming languages are SQL and Prolog.

Problem

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

Original source

Related problems