switch on strings is there, as are switch expressions.
records now removes the need for getters in immutable contexts.
switch on strings is there, as are switch expressions.
records now removes the need for getters in immutable contexts.