Declarative programming Language

What is the Declarative programming Language?

Declarative programming is a type of language in which you write your code in such a way that it defines what you want to do, and not how you want to do it. It is also known as non-procedural language. In other words, the approach focuses on what results to be achieved instead of instructing how to get it. It is different from other imperative languages in which all instructions are written in sequence for solving specific problems. Declarative programming defines a specific class of problems with language implementation taking care of finding the solution. The declarative programming techniques help in simplifying the programming behind some parallel processing applications.

Examples of Declarative programming language

List of all Declarative Languages.

  • Curly-bracket languages
  • Dataflow languages
  • Embeddable languages
  • Decision table languages
  • Concurrent languages
  • Dataflow languages
  • Curly-bracket languages
  • Authoring languages
  • Educational languages.
  • Esoteric languages
  • Extension languages
  • Command-line interface languages

Advantages of the declarative language

  1. It is closer to natural language
  2. It is easier to learn by a non-programmer
  3. It is easier to generate code used for different purposes.
  4. It provides easy error recovery
  5. It is easy to specify a construct that will stop at the first error instead of having to add error listeners for every possible error.
Declarative programming Language

Leave a Reply

Your email address will not be published. Required fields are marked *