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

Yes, but that’s just the sort of linting you can also get vía Go tools. It’s not something that’s possible because of sum types.

> if a function has no side effects

A property which of course is not tracked by Rust’s type system. My only point here is that neither sum types in general nor Rust’s specific implementation of them provide any means of ensuring that errors are handled. They do other nice things, just not that.



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

Search: