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

Instead of `Option<T>` it would be more idiomatic to use `Result<T, ()>` or even better `Result<T, E>`. Where `E` is some way to communicate the error code/type/message back to the caller.



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

Search: