摘要:
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
阅读(196)
评论(0)
推荐(0)
摘要:
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
阅读(225)
评论(0)
推荐(0)
摘要:
[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
阅读(179)
评论(0)
推荐(0)
摘要:
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
阅读(199)
评论(0)
推荐(0)
摘要:
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
阅读(241)
评论(0)
推荐(0)
浙公网安备 33010602011771号