Option/Result (with code gen) 1.0.0 Tools 4.4 Community
Submitted by user Grindle; MIT; 2025-12-05
This plugin uses code generation to simulate generics for a best-attempt at static Option/Result types. Long story short, some parts of the end result are still dynamic, but the plugin has proven useful to me as a drop-in solution for null annoyances. Every dynamic part has asserts to protect against headaches.
A lot of the API surface won't make sense unless you read the README in the source repository. Also, you can find an example project there with a method chaining example, a pattern matching example, and unit tests.
View files Download Submit an issue Recent Edits