Declarative language -overview

Difference between Compiled , Interpreted vs declarative Language

  • compiled language :-implementations are typically compilers and not interpreters. eg: java,c,c++
  • Interpreter language :- execute instructions directly and freely without compilation. eg: python
  • declarative language :- program specifies what is to be done rather than how to do it. expresses logic of a computation

Example of Declarative language

  • JSON
  • YAML

Pros and Cons of Declarative Language

pros

  • short
  • efficient code can written
  • high level of abstraction

cons

  • hard to understand