You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could add an error (or autocorrect!) to add else T.absurd(ab) to the end of the case statement.
It's unclear when we should do this, and it could potentially be pretty noisy. Off the top of my head, I would think we should do it only for case statements (not if statements) that don't have an else. We'd have to see how much of a breaking change that would be.
The text was updated successfully, but these errors were encountered:
There is already precedent for this; I made a change similar to this on a branch that was never pushed or reviewed when I was driving up adoption of T.absurd internally on Stripe's monorepo.
Problem
This program already exhausts all the cases:
→ View on sorbet.run
Proposed solution
We could add an error (or autocorrect!) to add
else T.absurd(ab)
to the end of the case statement.It's unclear when we should do this, and it could potentially be pretty noisy. Off the top of my head, I would think we should do it only for
case
statements (notif
statements) that don't have anelse
. We'd have to see how much of a breaking change that would be.The text was updated successfully, but these errors were encountered: