好词典

declarative

UK //dɪˈklærətɪv//US //dɪˈklærətɪv//

词源

源自拉丁语 'declarativus',来自 'declarare'(意为“声明、宣布”)。

adjective

❶ 用于描述以陈述或声明形式表达的事物,尤其在语法和编程中,指明确表达意图而非具体操作步骤的方式。

“She gave a declarative statement about her plans for the project.”

(她发表了一份关于项目计划的声明性陈述。)

“In programming, SQL is a declarative language because you specify what data you want, not how to get it.”

(在编程中,SQL是一种声明式语言,因为你指定你想要什么数据,而不是如何获取它。)

同义词:assertive, explicit, affirmative

常见短语

declarative sentence — 陈述句,用于陈述事实或表达观点的句子类型。

“The sky is blue is a declarative sentence.”

(“天空是蓝色的”是一个陈述句。)

declarative programming — 声明式编程,一种编程范式,专注于描述程序的目标而非具体步骤。

“HTML is an example of declarative programming.”

(HTML是声明式编程的一个例子。)