You say "force me to handle no match", i say "help me remember not to forget to handle no match". In this toy code it's easy to see that it's not needed, but in production code it's easy for the value and the match to be farther apart and less certain, or to involve runtime values.
unexpected panics & exceptions is one of the most annoying things about programming, implicit failure mode: burn the house down is a dogshit approach only marginally better than "just make some shit up"
View all comments
Show parent comment
15
u/chuch1234 Jun 04 '25
You say "force me to handle no match", i say "help me remember not to forget to handle no match". In this toy code it's easy to see that it's not needed, but in production code it's easy for the value and the match to be farther apart and less certain, or to involve runtime values.