News for hackers. Stuff that matters.
Re:The power of Result types in Swift by mpweiher on Monday June 18, 2018 @11:56AM (#17339211)
> I find this concept of a "stderr output" far more complicated.

And you know this how?

> Values are much easier to reason about and inspect than functions

Right, which is why we want to avoid functions as much as possible.

> simple functions that return complicated values than to complicate the functions themselves

Fortunately, these filters aren't functions, so this doesn't complicate them, it makes them simpler.

Re:The power of Result types in Swift by lmm on Monday June 18, 2018 @12:46PM (#17339657)
> And you know this how?

Professional experience.

> Fortunately, these filters aren't functions, so this doesn't complicate them, it makes them simpler.

Functions are at least restricted enough that you can sort of reason about them. If these things are not even functions then there's no hope of ever understanding them.