最近从特性列表中被砍掉的特性包括主要构造函数(primary constructor)和声明表达式(declaration expression)。作者Jonathan Allen。
基于18个网页-相关网页
primary constructor
主构造函数
以上为机器翻译结果,长、整句建议使用 人工翻译 。
youdao
It calls the primary constructor with Nil (which represents an empty List object).
它调用主构造函数,并且传入Nil (Nil表示了一个空的List对象)。
Scala distinguishes between a primary constructor and zero or more auxiliary constructors.
Scala可以区分主构造函数和0个或多个辅助构造函数。
应用推荐
模块上移
模块下移
不移动