New feature include: expression closures, generator expressions, and native JSON encoding and decoding.
新特性包括:表达式闭包(expression closures)、生成器表达式(generator expressions)和本地的JSON编码及解码。
Expression closures are a shorthand method of defining simple functions that mimics lambda notation.
表达式闭包是定义简单函数的一种便捷方式,用来模仿lambda符号。
The closures notation strips away the boilerplate associated with inner classes, allowing a more compact (and more importantly, more direct) expression of the desired data operation.
闭包标注取消了与内部类相关的引用,允许更紧凑(重点更突出、更直接)地表示需要的数据操作。
应用推荐