Prefix and Infix Operators

next up previous contents index
Next: Fetch Up: Expressions Previous: Method Selection

Prefix and Infix Operators

Theta allows prefix and infix notation to be used as a shorthand for calls of certain methods. The notation is legal if the corresponding method is a procedure and its call is legal. The following table shows the shorthand form and the equivalent expanded form for each operator.



This notation is used extensively for the built-in types, and may be used for user-defined types as well.