3 ms·
Having a single Result type as standard has a huge benefit. You can do error handling for every library you use in exactly the same way. You also get decent sta
by lostdog 5y ago
Having a single Result type as standard has a huge benefit. You can do error handling for every library you use in exactly the same way. You also get decent stack traces because the runtime can reason about a single error type. Unified error handling is, IMO, necessary for making a language a pleasant experience.