Potrei immaginare che il codice seguente sia in qualche modo utile. C'è una ragione per cui questo schema non è stato introdotto nei linguaggi di programmazione?
Per essere chiari, la stringa è stata proprio ciò che ho scelto come esempio da sostituire con qualsiasi tipo di input e la mia domanda sarebbe comunque valida.
public string switch findLastName(string firstName)
{
    case "John":
        return "Johnson";
    case "Susan":
        return "Stevens";
    case "Tyler":
        return "Gomez";
    default:
        return "Smith";
}
Invece di:
public string findLastName(string firstName)
{
    switch(firstName)
    {
        case "John":
            return "Johnson";
        case "Susan":
            return "Stevens";
        case "Tyler":
            return "Gomez";
        default:
            return "Smith";
    }
}