Inputs are very often parsed in order to get a desired object A.
I think it would be convenient to add the method StdIn.readWith[A](f: String => Boolean): A to Scala in order to make the input processing phase more natural and thus gain in fluidity (chained methods for example).
Inputs are very often parsed in order to get a desired object A. I think it would be convenient to add the method
StdIn.readWith[A](f: String => Boolean): A
to Scala in order to make the input processing phase more natural and thus gain in fluidity (chained methods for example).