Why not simply place the `stdin.readLine` in another proc?
proc readLineSafe(): Option[string] =
try: return some(stdin.readLine()) except EOFError: return none[string]()
RunThen spawn that proc.
Why not simply place the `stdin.readLine` in another proc?
proc readLineSafe(): Option[string] =
try: return some(stdin.readLine()) except EOFError: return none[string]()
RunThen spawn that proc.