Declarative Programming
Declarative programming is a programming paradigm in which programmers express computational intent by describing the desired result or logical rules, without explicitly specifying execution steps, as opposed to imperative programming. Its core characteristic is focusing on "what to do" rather than "how to do it," leaving the concrete implementation to the underlying system or runtime. SQL, HTML, functional programming languages, and logic programming languages such as Prolog are typical examples, widely used in database querying, interface description, and artificial intelligence.
Core Facts
Timeline (last 90 days)
Declarative agent definition means developers describe an agent's role, available tool set, and interaction constraints with structured configuration instead of hand-writing dispatch logic, message assembly, and loop control.
Declarative programming describes what the result should be, while imperative programming describes how to reach the result step by step.
All Facts (4)
SQL is a classic example of a declarative language, where users declare what data they want and the database query optimizer decides the optimal execution plan on its own.
80%UnverifiedDeclarative agent definition means developers describe an agent's role, available tool set, and interaction constraints with structured configuration instead of hand-writing dispatch logic, message assembly, and loop control.
50%UnverifiedDeclarative programming describes what the result should be, while imperative programming describes how to reach the result step by step.
50%Unverified命令式编程描述'如何做',声明式编程描述'做什么',将执行细节委托给运行时或解释器
50%