This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.
I was never too happy with the existing naming approaches for the Result type: Success/Failure pro: both names have the same length, like Option’s Some/None con: quite long, concern that people may use Option over Result Ok/Err pro: short con: names don’t have the same length, leading to inconsistent indentation when pattern matching con: Err is not a word The new naming ticks all the boxes:…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.