What is the difference between declarative and procedural programming paradigms?

后端 未结 8 679
旧巷少年郎
旧巷少年郎 2020-12-07 08:00

What is the difference between the declarative and procedural programming paradigms? Could you please provide some examples?

What other programming

8条回答
  •  無奈伤痛
    2020-12-07 08:21

    So YAML is declarative programming language? Because we define what we want instead of writing actual logic.

    I am asking this because if anyone knows Ansible which is configuration management tool, it uses YAML but it still falls in procedural language category.

提交回复
热议问题