You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yaml values such as 0xFFFF or -.inf are recognized as Integer and Double but parsing fails:
scala> println("0xFFFF".as[Int])
Left(ConstructError(Cannot parse 0xFFFF as Int
at 0:0, expected Int0xFFFF^ ))
scala> println("-.inf".as[Double])
Left(ConstructError(Cannot parse -.inf as Double
at 0:0, expected Double-.inf
^ ))
The text was updated successfully, but these errors were encountered:
We use String#toIntOption and String#toDoubleOption to parse ints and doubles and these strings are not supported by those parsers. I guess to support them would mean writing a custom parser for both. Is this a part of yaml spec? Are those valid values for Int or Double by spec?
Yaml values such as
0xFFFF
or-.inf
are recognized asInteger
andDouble
but parsing fails:The text was updated successfully, but these errors were encountered: