what is your attitude towards an additional read method that will never throw an exception? I mean a signature like
def maybeRead[T: Reader](s: ujson.Readable): Either[String, T]
where String would be the message of the exception you are throwing.
Although this is easy to achieve on top of the current read, I still wonder whether it was worth to supply.
Hi Li,
what is your attitude towards an additional read method that will never throw an exception? I mean a signature like
def maybeRead[T: Reader](s: ujson.Readable): Either[String, T]
whereString
would be the message of the exception you are throwing.Although this is easy to achieve on top of the current read, I still wonder whether it was worth to supply.
ID: 312 Original Author: peter-empen