diff options
author | Robin Burchell <robin+git@viroteck.net> | 2019-07-30 17:20:34 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-31 09:06:39 +0200 |
commit | a82c60b22a7fb616306f2246f8b7d2e1058ccabc (patch) | |
tree | 63c181e4a4717522deefc08d009c0649c174abe1 /Servers | |
parent | 7dd25141cdd0c5ce1bc0ccd3c2d9a3c470b63aaf (diff) | |
download | serenity-a82c60b22a7fb616306f2246f8b7d2e1058ccabc.zip |
Add Result<>, to use with/complement Error
An operation often has two pieces of underlying information:
* the data returned as a result from that operation
* an error that occurred while retrieving that data
Merely returning the data is not good enough. Result<> allows exposing
both the data, and the underlying error, and forces (via clang's
consumable attribute) you to check for the error before you try to
access the data.
Diffstat (limited to 'Servers')
0 files changed, 0 insertions, 0 deletions