2 ms·
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.
by andrewflnr 7y ago
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)