网站首页  英汉词典

请输入您要查询的英文单词:

 

单词 Call by need
释义

Call by need

中文百科

惰性求值 Lazy evaluation

(重定向自Call by need)

在编程语言理论中,惰性求值英语:Lazy Evaluation),又译为惰性计算懒惰求值,也称为传需求调用(call-by-need),是一个计算机编程中的一个概念,它的目的是要最小化计算机要做的工作。它有两个相关而又有区别的含意,可以表示为“延迟求值”和“最小化求值”,本条目专注前者,后者请参见最小化计算条目。除可以得到性能的提升外,惰性计算的最重要的好处是它可以构造一个无限的数据类型。

惰性求值的相反是及早求值,这是一个大多数编程语言所拥有的普通计算方式。

英语百科

Lazy evaluation 惰性求值

(重定向自Call by need)

In programming language theory, lazy evaluation, or call-by-need is an evaluation strategy which delays the evaluation of an expression until its value is needed (non-strict evaluation) and which also avoids repeated evaluations (sharing). The sharing can reduce the running time of certain functions by an exponential factor over other non-strict evaluation strategies, such as call-by-name.

随便看

 

英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2024 encnc.com All Rights Reserved
更新时间:2025/6/18 2:12:13