4 ms·
I really think the `case throws` is brilliant. Next, lets add a `never` type to make this legal. var foo = switch (bar) { case String s -> s, case N
by throwat2341 3y ago
I really think the `case throws` is brilliant.
Next, lets add a `never` type to make this legal.
var foo = switch (bar) {
case String s -> s,
case Number n -> return,
};