Everything About ___
Live briefing

Everything about Result type

Concept in functional programming

In functional programming, a result type is a monadic type holding a returned value or an error code. They provide an elegant way of handling errors, without resorting to exception handling; when a function that may fail returns a result type, the programmer is forced to consider success or failure paths, before getting access to the expected result; this eliminates the possibility of an erroneous programmer assumption. Wikipedia →

🧭 Start here: a 6-step reading path

  1. Read the overview: Result typeA 5-minute orientation
  2. Skim a recent paper: The Dark Energy Survey: Cosmology Results with ∼1500 New High-redshift Type Ia Supernovae Using the Full 5 yr Data SetInfluential work since 2022
  3. Pick up a classic book: O. A. C. Review Volume 37 Issue 12, August 1925The most-reprinted book on the subject
  4. Read the landmark paper: Nagumo-type uniqueness result for fractional differential equationsCited 98 times
  5. Go sideways: Tagged unionA closely related topic
  6. Go sideways: Option typeA closely related topic

📖 Definitions

Noun Synonym of return type.

🗂️ The subject at a glance

  1. Examples

🏆 Landmark papers (most cited)

🆕 Influential since 2022

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

🔗 Related topics