All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Follow-up Analysis: The Cost of Algebraic Data Types for Error Handling

By

todsacerdoti

6mo ago· 3 min readenInsight

Summary

This article is a follow-up to a previous piece on strongly typed error codes, addressing the common argument that using algebraic data types for errors is essentially free because error information is only filled in when errors occur, which happens rarely on the 'cold path.' The article examines this claim about error handling efficiency in programming.

Key quotes

· 3 pulled
Error information is only filled in when an error occurs
And errors happen rarely, on the cold path
Therefore, filling in the diagnostic information is essentially free, a zero cost abstraction
Snippet from the RSS feed
A follow-up on the strongly typed error codes article.

You might also wanna read