gul-cpp / gul14

General Utility Library for C++14
https://gul14.info/
GNU Lesser General Public License v2.1
2 stars 1 forks source link

Feature request: expected #27

Closed alt-graph closed 1 year ago

alt-graph commented 1 year ago

It would be great to have a backport of std::expected from C++23 in GUL14.

Finii commented 1 year ago

For me this is the origin of expected https://www.youtube.com/watch?v=PH4WBuE1BHI

Which is of course not true, but a lot of background is passed along the way. I believe exceptions are overused in doocs and esp taskolib, so this could alleviate us a bit from the exceptions pain.

alt-graph commented 1 year ago

There is now a PR with an implementation of gul14::expected. Please have a look. :)