Re:Parsing JSON is a Minefield
by yazaddaruvala on Thursday October 27, 2016 @04:58AM
(#12803707)
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.
[ Parent
| on HN ]
There are no comments on this comment yet.