4 ms·
This is a similar argument as for functional programming: sure it's great that functional programming has pure functions, but most languages allow for pure func
by ppeetteerr 6y ago
This is a similar argument as for functional programming: sure it's great that functional programming has pure functions, but most languages allow for pure functions _and_ for procedural code.
Similarly, most languages (Java, Swift, etc) have generics, tuples, _and_ thrown exceptions. It's up to the user to determine whether to return a Result<T, E>, a (T, E), or throw an exception when an error occurs.