News for hackers. Stuff that matters.
Re:Current hardware trends make C++ exceptions harder to jus... by jkaptur on Tuesday February 22, 2022 @01:24PM (#30431458)
I'm relatively new to C++ and I found absl::StatusOr<T> and its helper macros to be extraordinarily pleasant.
Re:Current hardware trends make C++ exceptions harder to jus... by alskdjflaskjdhf on Tuesday February 22, 2022 @02:19PM (#30432292)
Yep, these are used extensively at Google (which is where the abseil library came from, and which is famously anti-cpp-exceptions) and they work very well. If I somehow found myself writing a new C++ project I'd probably reach for abseil (and some of the other parts of the Google toolchain: GoogleTest for testing, bazel for builds).
Re:Current hardware trends make C++ exceptions harder to jus... by kirbyfan64sos on Tuesday February 22, 2022 @01:40PM (#30431723)
It has helper macros now? I liked StatusOr but had to write my own helper macros for it at the time.
Re:Current hardware trends make C++ exceptions harder to jus... by trimbo on Tuesday February 22, 2022 @01:58PM (#30431996)