Spyke
soc
programming.dev

Many languages' Option and Result types suffer from an organically-grown and therefore inconsistently named set of functions that operate on them.

We can do better! The article demonstrates how a full set of useful methods with predictable names can be derived from few, simple rules.

1
mobotsarreply
sh.itjust.works

Pass and Fail

You really wanted them to have the same number of letters, eh? Haha.

1

Yeah, avoids pointless debates whether they should be lined up in matches or not. :-)

1

You reached the end

Library Design: Naming Conventions – Option & Result | Spyke