什么是声明式编程? [英] What is declarative programming?

查看:118
本文介绍了什么是声明式编程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在几个不同的背景下听到这个词.什么事?

I keep hearing this term tossed around in several different contexts. What is it?

推荐答案

说明性编程是指您以描述您想做什么而不是您想怎么做的方式来编写代码.由编译器来决定如何做.

Declarative programming is when you write your code in such a way that it describes what you want to do, and not how you want to do it. It is left up to the compiler to figure out the how.

声明性编程语言的示例是SQL和Prolog.

Examples of declarative programming languages are SQL and Prolog.

这篇关于什么是声明式编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆