对应于函数式语言是像C这样的命令式语言(imperative programming language),lambda表达式就更像一个外来户,更多的只是提供一种不用名字建立函数的方法。嗯.
基于8个网页-相关网页
imperative quantum programming language 命令式量子程序设计语言
In an imperative programming language one might accomplish this with a loop.
在命令型(imperative)编程语言里,一般会用循环来达到相同目的。
A different tack is to define a state machine as any imperative programming language in which the nodes are also the source lines.
另一种策略就是将状态机定义成一种强制性编程语言,其中节点也是源码行。
Since the macro expands to regular code anyway, you can always switch back to imperative programming if the declarative language doesn't suit your needs.
因为宏可以以任何方式展开常规代码,所以如果声明式语言不能满足需要,那么随时可以切换回命令式编程。
应用推荐