Hi, after a conversation at work, where we wanted an Option type but with clear meanings for what the None variant made, I quickly hacked up the Enumizer crate - a crate with macros that create Option/Result/Either equivalent types, with user-chosen variant names. The crate is still far from complete - I implemented the functions that I thought are must-have, but there's still plenty to do, if anyone wants to contribute :)

<edit> I'm seeing from the discussion below that this might not be as clear as I imagined it to be :)

Let's say that you have a mechanism that has an expensive lookup for values, but also has so...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help