logoalt Hacker News

gregdaniels421today at 12:18 AM1 replyview on HN

Ages ago in C++ there was the hope of having the standard library give more error codes and use error values instead of full exceptions. Zig has some excellent innovations in that direction, any hope of that in D?

Edit: I think it was called "Herbception"s after Herb Sutter, and it really sounded like a good idea to me


Replies

WalterBrighttoday at 12:31 AM

It's been a while since I looked at Zig. I couldn't say anything intelligent about it without some study.

I used to be a big fan of C++ exceptions, but eventually soured on it for various reasons. Here's an article partially addressing it from a while back:

https://dlang.org/articles/exception-safe.html

show 1 reply