Programming in Scala Quotes
Programming in Scala: A Comprehensive Step-by-step Guide
by
Martin Odersky1,663 ratings, 4.22 average rating, 100 reviews
Programming in Scala Quotes
Showing 91-120 of 92
“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 with a word that cannot start a statement. The line ends while inside parentheses (...) or brackets [...], because these cannot contain multiple statements anyway.”
― Programming in Scala
― Programming in Scala
“You may be wondering why you can't access the elements of a tuple like the elements of a list, for example, with "pair(0)". The reason is that a list's apply method always returns the same type, but each element of a tuple may be a different type: _1 can have one result type, _2 another, and so on.”
― Programming in Scala
― Programming in Scala
