You are viewing a single thread.
View all comments View context
2 points

they also said switch expressions, which indicates they want the switch statement to be settable directly to a variable with whatever the return type of the switch is.

permalink
report
parent
reply
2 points

Match already returns the value which can be thrown into a variable.

permalink
report
parent
reply

Community stats

  • 1

    Monthly active users

  • 47

    Posts

  • 25

    Comments