summaryrefslogtreecommitdiff
path: root/Servers
diff options
context:
space:
mode:
authorRobin Burchell <robin+git@viroteck.net>2019-07-30 17:20:34 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-31 09:06:39 +0200
commita82c60b22a7fb616306f2246f8b7d2e1058ccabc (patch)
tree63c181e4a4717522deefc08d009c0649c174abe1 /Servers
parent7dd25141cdd0c5ce1bc0ccd3c2d9a3c470b63aaf (diff)
downloadserenity-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