Modernize control flow and option handling
Introduce `match()`, nullsafe operators, named arguments, first-class callables, and replace magic-string options with enums or readonly value objects where it improves clarity.
issue