
I have a class that allows filtering based on an option, I need a way to accept options and also reject invalid options. In the past, I would reach for a switch statement, or more recently a match statement. But an enum is better suited for this task...
Web developer
Blogger at http://dcblog.dev.
Markdown supported · ⌘↵ to post
No responses yet.