Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



#odersky-programming-in-scala-1ed #scala
a semicolon is required if you write multiple statements on a single line
If you want to change selection, open document below and click on "Move attachment"

Classes and Objects
4.2 Semicolon inference [link] In a Scala program, a semicolon at the end of a statement is usually optional. You can type one if you want but you don't have to if the statement appears by itself on a single line. On the other hand, <span>a semicolon is required if you write multiple statements on a single line: val s = "hello"; println(s) If you want to enter a statement that spans multiple lines, most of the time you can simply enter it and Scala will separate the statements i


Summary

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Details



Discussion

Do you want to join discussion? Click here to log in or create user.