07 2019 档案
Scala中关于auxiliary constructors
摘要:In Scala, constructors other than the primary constructor are called auxiliary constructors. Auxiliary constructors in Scala start with def this(...). 阅读全文
posted @ 2019-07-28 12:01 25th_engineer 阅读(173) 评论(0) 推荐(0) 编辑
IMMUTABLE OBJECT TRADE-OFFS(不可变对象的优缺点)
摘要:Immutable objects offer several advantages over mutable objects, and one potential disadvantage. First, immutable objects are often easier to reason a 阅读全文
posted @ 2019-07-28 11:32 25th_engineer 阅读(281) 评论(0) 推荐(0) 编辑
Programming in Scala第5章Basic Types and Operations总结
摘要:[1] Packages, which were briefly described in Step 1 in Chapter 2, will be covered in depth inChapter 13. [2] figuratively speaking [3] Overloaded met 阅读全文
posted @ 2019-07-28 10:28 25th_engineer 阅读(160) 评论(0) 推荐(0) 编辑
Scala interpolator学习炸机(续)
摘要:You can place any expression after a dollar sign ($) in a processed string literal. For single-variable expressions, you can often just place the vari 阅读全文
posted @ 2019-07-28 10:25 25th_engineer 阅读(166) 评论(0) 推荐(0) 编辑
关于Scala中的String Interpolation
摘要:Scala provides two other string interpolators by default: raw and f. The raw string interpolator behaves like s, except it does not recognize characte 阅读全文
posted @ 2019-07-27 17:25 25th_engineer 阅读(191) 评论(0) 推荐(0) 编辑
scala基本数据类型学习
摘要:Scala does not support octal literals; integer literals that start with a 0, such as 031, do not compile. If an integer literal ends in an L or l, it 阅读全文
posted @ 2019-07-27 17:16 25th_engineer 阅读(216) 评论(0) 推荐(0) 编辑
Programming in Scala 3rd Edition第三章Classes and Objects总结
摘要:[1] The reason parameters are vals is that vals are easier to reason about. You needn't look further to determine if a val is reassigned, as you must 阅读全文
posted @ 2019-07-27 16:06 25th_engineer 阅读(173) 评论(0) 推荐(0) 编辑
为什么fsc比scalac编译程序编译要快
摘要:This(scalac) compiles your source files, but there may be a perceptible delay before the compilation finishes. The reason is that every time the compi 阅读全文
posted @ 2019-07-27 15:50 25th_engineer 阅读(194) 评论(0) 推荐(0) 编辑
Scala中singleton objects与class的区别
摘要:One difference between classes and singleton objects is that singleton objects cannot take parameters,whereas classes can. Because you can't instantia 阅读全文
posted @ 2019-07-27 15:35 25th_engineer 阅读(227) 评论(0) 推荐(0) 编辑


点击右上角即可分享
微信分享提示