Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It is ABI breaking but there is a way out. Instead of replacing the existing exceptions, this mechanism could be used for checked exceptions only which will necessarily require annotating functions, so ABI breaks are to be expected.


Wouldn't function annotations be an API break, too?

And I'd imagine checked exceptions would get a decent amount of pushback due to Java's implementation.


Yes, but they are opt-in.

I think, given the right abstraction capabilities they might work in C++. They are semantically no different than returning an either<T, error>.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: