Of course we can make this a bit more elegant by creating an infix operator method to use with our infix type:
An infix type T1 op T2
consists of an infix operator op
which gets applied to two
type operands T1
and T2
.
An infix type T1 op T2
consists of an infix operator op
which gets applied to two
type operands T1
and T2
. The type is equivalent to the type application op[T1,T2]
.
The infix operator op
may be an arbitrary identifier, except for *
, which is reserved
as a postfix modifier denoting a repeated parameter type.
We can make a type infix, meaning that the type can be displayed in complement between two types in order to make a readable declaration:
The parameterless execute method has been deprecated and will be removed in a future version of ScalaTest. Please invoke execute with empty parens instead: execute().
The trap method is no longer needed for demos in the REPL, which now abreviates stack traces, and will be removed in a future version of ScalaTest