In general, programming languages impose restrictions on the ways in which computational elements
can be manipulated. Elements with the fewest restrictions are said to have first-class status. Some of
the ‘‘rights and privileges’’ of first-class elements are:
They may be named by variables.
They may be passed as arguments to procedures.
They may be returned as the results of procedures.
They may be included in data structures.
from chapter 1.3.4 of sicp
本文探讨了编程语言中一等公民的概念及其特征,包括变量赋值、作为参数传递、作为过程返回值以及包含于数据结构中等内容。
1114

被折叠的 条评论
为什么被折叠?



