What type would you expect for a function that takes a string of the form "123" and returns an integer?
I've seen str -> int (with an exception message), str -> option<int> (no info on what was wrong) and str -> result<int,int_error> (exposes all the error types to callers).
miniblog.
Related Posts
'Elm Lens' is a really neat idea: it exposes the number of callers to the current function in your editor!
Spatch is a really neat tool that lets you apply diffs to code according to syntax! https://github.com/facebook/pfff/wiki/Spatch (eg remove 1 arg at all callers)
Go has added monotonicity to its Time implementation, without changing the API for callers! https://github.com/golang/proposal/blob/master/design/12914-monotonic.md (an impressive feat!)