Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
yazaddaruvala
on Oct 27, 2016
|
parent
|
context
|
favorite
| on:
Parsing JSON is a Minefield
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: