I've written a library for options that does exactly this, amongst other useful things with options: [https://nimble.directory/pkg/optionsutils](https://nimble.directory/pkg/optionsutils)
- How does one use switch for optional types? adnan
- Re: How does one use switch for optional types? trtt
- Re: How does one use switch for optional types? PMunch
