A conditional expression.
Conditional expressions resemble control structures, but are part of the expression syntax and evaluate to values.
Examples (multi-line):
if (is Box<Type> that) then this.content == that.content else false switch (first.age <=> second.age) case (smaller) "younger" case (equal) "of the same age as" case (larger) "older than"
Anything
ConditionalExpression
Expression
Node
Object
Anything
Initializer |
ConditionalExpression() |
Inherited Attributes |
Attributes inherited from: Expression |
Attributes inherited from: Node |
Attributes inherited from: Object hash , string |
Inherited Methods |
Methods inherited from: Node |
Methods inherited from: Object equals |