▲ | greener_grass 2 days ago | |
Haskell has do-notation which is a more general kind of this syntactic sugar | ||
▲ | 2 days ago | parent | next [-] | |
[deleted] | ||
▲ | kccqzy 2 days ago | parent | prev [-] | |
Yeah that's what I said about bind. Let's consider a language like C++ where it has none of those syntax sugars. The absl::StatusOr is a class with the idea that errors should be values. The standard library has std::expected since C++23. So where is your pyramid of doom? |