take no arguments, when they are
invoked without a dot or parentheses
Tags
#odersky-programming-in-scala-1ed #scala
Question
Postfix operators are methods that [...].
Answer
?
Tags
#odersky-programming-in-scala-1ed #scala
Question
Postfix operators are methods that [...].
Answer
take no arguments, when they are
invoked without a dot or parentheses
If you want to change selection, open original toplevel document below and click on "Move attachment"
Parent (intermediate) annotation
Open it Postfix operators are methods that take no arguments, when they are
invoked without a dot or parentheses.
Original toplevel document
Basic Types and Operations identifiers that can be used as prefix
operators. You could invoke the method normally, as in p.unary_*, but if you attempted to invoke it via *p, Scala will
parse it as if you'd written *.p, which is probably not what you had in mind![4]
<span>Postfix operators are methods that take no arguments, when they are
invoked without a dot or parentheses. In Scala, you can leave off
empty parentheses on method calls. The convention is that you include
parentheses if the method has side effects, such as println(), but
you can leave them of
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.