这些方法参数定义成值对象,即不含逻辑只含数据值的对象。
These method parameters are defined as value objects; that is, objects with no logic that hold only data values.
例如,Scala中的每个值都是一个对象,包括基本数据类型(即布尔值、数字等)在内,连函数也是对象。
For example, every value in Scala is an object, this includes basic data types (i.e. booleans, Numbers) as well as functions.
应用推荐