使我们除了可以使用"古老"的命令式代码(imperative code),还可以使用声明式代码(declarative code),可以让我们作出更为灵活的实现与工程实践. 命令式代码 顾名思义,命令式代码如同.
基于8个网页-相关网页
Code reuse is an obvious development goal, and imperative abstractions tend to solve that problem differently from the way that functional programmers solve it.
代码重用是一个显著的开发目标,而命令式抽象倾向于用不同于函数式程序员解决问题的方法来解决问题。
The declarative information is transformed into an imperative form at compile-time, rather than each time it is used at runtime, resulting in faster code.
声明式信息在编译时转换为命令形式,而不是在运行时每次使用时进行转换,这使代码更快。
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.
因为宏可以以任何方式展开常规代码,所以如果声明式语言不能满足需要,那么随时可以切换回命令式编程。
应用推荐