Declarative language

From Higher Computing Science
Revision as of 08:44, 3 December 2014 by Mrliddle (Talk | contribs) (Created page with "* Declarative languages are designed to match how humans think * Instead of a sequence of commands, declarative languages have a set of facts and rules (the knowledge base) *...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • Declarative languages are designed to match how humans think
  • Instead of a sequence of commands, declarative languages have a set of facts and rules (the knowledge base)
  • A declarative program works by sending a query to the program. This is a test that is checked against the facts and rules in the knowledge base.
  • Declarative programs do not tend to use variables and control structures like procedural language, but depend on rules to control the behaviour of the program
  • Declarative programs can edit their own knowledge base (such as adding new facts) which means they can “learn” from user interaction.