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

Rust uses Result. Checked exceptions are Java's analogue of Result.


I disagree. Exceptions are a fundamentally different control flow. Exceptions are exceptions. Return values are not.

I would not call std::optional in C++ any form of checked exception, and the difference isn't that std::optional doesn't carry value-missing metadata.




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

Search: