Hacker News new | ask | show | jobs
by elcritch 153 days ago
Result or Error types may just be normal values, but they add overhead to the code as well when they’re ubiquitous.

Once they’re the standard error method then case every function has to intertwine branching for errors paths vs normal paths. Often the compiler has to generate unique code or functions to handle each instance of the Result type. Both add to code size and branching size, etc.