logoalt Hacker News

Rucadilast Friday at 11:05 PM0 repliesview on HN

The best part of statement expressions is that a return there returns from the function itself, not from the statement expr.

I use that with with macros to return akins to std::expected, while maintaining the code in the happy-path like with exceptions.