Hacker News new | past | comments | ask | show | jobs | submit login

On the other hand the Rust syntax have gradually moved closer to exceptions, now with the "?" operator which automatically unpack the result or propagates the error value. This feels awfully close to exceptions, even if it in theory is "just a value".



I think the main difference is that it forces the acknowledgement of the error at the point of the function call, which is not the case with exceptions.




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

Search: