News for hackers. Stuff that matters.
Re:Mental models around Ok-Wrapping by andrewflnr on Friday April 10, 2020 @11:37AM (#22834113)
I don't think async is a good comparison. Compiling async functions is inherently magical, since it involves the compiler mucking with your control flow graph. This makes it less of a surprise when magic shows up in your type signature. On the completely opposite hand, what makes Results cool is that they require no magic beyond enum/match. (Yes, it's nice that there's sugar like '?', but you don't need it to write code that uses Results correctly)

There are no comments on this comment yet.