EindbaasExpress / handsonscala-issuemigrator

Part of the HandsOnScala Course
0 stars 0 forks source link

Non-side-effecting Read #81

Open EindbaasExpress opened 2 years ago

EindbaasExpress commented 2 years ago

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] 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.

ID: 312 Original Author: peter-empen