In short, a line ending is treated as a semicolon unless one of the following conditions is true:
The line in question ends in a word that would not be legal as the end of a statement, such as a period or an infix operator.
The nextline begins [...].
The line ends while inside parentheses (...) or brackets [...], because these cannot contain multiple statements anyway.
Answer
with a word that cannot start a statement
Tags
#odersky-programming-in-scala-2ed #scala
Question
In short, a line ending is treated as a semicolon unless one of the following conditions is true:
The line in question ends in a word that would not be legal as the end of a statement, such as a period or an infix operator.
The nextline begins [...].
The line ends while inside parentheses (...) or brackets [...], because these cannot contain multiple statements anyway.
Answer
?
Tags
#odersky-programming-in-scala-2ed #scala
Question
In short, a line ending is treated as a semicolon unless one of the following conditions is true:
The line in question ends in a word that would not be legal as the end of a statement, such as a period or an infix operator.
The nextline begins [...].
The line ends while inside parentheses (...) or brackets [...], because these cannot contain multiple statements anyway.
Answer
with a word that cannot start a statement
If you want to change selection, open document below and click on "Move attachment"
Open it rt, a line ending is treated as a semicolon unless one of the following conditions is true:
The line in question ends in a word that would not be legal as the end of a statement, such as a period or an infix operator.The next line begins <span>with a word that cannot start a statement.The line ends while inside parentheses (...) or brackets [...], because these cannot contain multiple statements anyway.
<span><body><html>
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.