11975 shaares
316 private links
316 private links
Returning a tuple (a T and an error) isn’t an appropriate tool when you want your function to return either a T or an error. It’s a brittle hack that requires everyone to use a third-party linter on top. Otherwise, that tuple is handled incorrectly too frequently.