I was following your post on this code and found that illegal input (non-numeric strings) caues this to throw. I'm unsure if this is an Arrow bug--presumably the IO.map call throws and doesn't catch before the Try block can trap it as a Failure
nathan
Hello, nathan, welcome to the game!
Dear nathan, please guess a number from 1 to 5:
whoops
Exception in thread "main" java.lang.NumberFormatException: For input string: "whoops"```
This is with a project built against Java 11, with Arrow 0.8.2, Kotlin 1.3.21
https://github.com/ajavageek/fpio/blob/d9a142d4068423f3ae32f18f9b11d68bda3dc551/src/main/kotlin/ch/frankel/blog/fp/Guess.kt#L55
I was following your post on this code and found that illegal input (non-numeric strings) caues this to throw. I'm unsure if this is an Arrow bug--presumably the IO.map call throws and doesn't catch before the Try block can trap it as a Failure