Represents an abstract mathematical or logical expression.
The Expression trait provides a contract for evaluating and displaying expressions. It is designed to handle expressions that return a result of type T wrapped in a Try, allowing for both successful evaluations and error reporting.
Evaluates the expression and returns the result wrapped in a Try. The Try indicates whether the evaluation was successful (Success) or resulted in an error (Failure).
Evaluates the expression and returns the result wrapped in a Try. The Try indicates whether the evaluation was successful (Success) or resulted in an error (Failure).
Attributes
Returns
a Try[T] containing either the result of the evaluation or an error.