Result type
id:
result-type-246-4050216
title:
Result type
text:
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.
brand slug:
wiki
category slug:
encyclopedia
description:
original url:
https://en.wikipedia.org/wiki/Result_type
date created:
date modified:
2024-04-26T14:41:39Z
main entity:
{"identifier":"Q25345885","url":"https://www.wikidata.org/entity/Q25345885"}
image:
fields total:
13
integrity:
13