An expression-oriented shape organizes method internals around expressions that evaluate to returned values, rather than around imperative statements and assignments. It makes inputs, outputs, and business meaning visible at the method boundary. section 1.4
Rescheduling a failed task
A vague void method such as reschedule() hides its behavior inside mutable state. A data-oriented alternative accepts a FailedTask and returns a RetryDecision. A switch expression can then produce RetryImmediately, ReattemptLater, or Abandoned values for explicit conditions.
