Closed SeanTAllen closed 2 years ago
I like that a lot more. I was trying to think of a way to get rid of the match because I did not like one condition being the fall through in else when we know all the states that are possible.
@rhagenson yeah. I didn't like it either. I dashed it off yesterday to get it open.
I've updated again because "dur", exhaustive match, the else wasn't needed. I think I like the version in the RFC better than the one in my comment now. It fits the existing API better.
@ergl Type aliases dont appear in any generated documentation.
Approved during today's sync call :heavy_check_mark:
@rhagenson @jemc I have a better implementation idea. Same shape of things but without the need for the match statement.
I prefer this and think it is easier to follow.
Thoughts?