Repository navigation
Code action to split case alternative patterns #5805
bentomas
started this conversation in
Ideas & suggestions
Replies: 2 comments
|
I've seen similar issue somewhere, iirc. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Sometimes I'll write a case clause with alternative patterns and then change my mind, I'd like them to be distinct clauses. It would be nice to be able to split an alternative pattern into two (or more?) distinct clauses, each with the original expression for that clause:
Becomes:
Then you can edit each clause to do the unique thing they need. I guess if there's more than two alternative patterns it could just split to 3 clauses.
All reactions