On Sun, Jan 17, 2021 at 3:41 PM Hervé BOUTEMY <[email protected]> wrote:
>
> there is a checkError() method we should probably check before closing, that
> seems a good idea
>

Remembering (and forgetting) to call an error checking method at the
right time is the unreliable anti-pattern IOException was created to
avoid. It's easier to simply avoid PrintWriter. It's not hard to add a
"\n" to method calls, and it also produces platform independent
output, unlike println().

-- 
Elliotte Rusty Harold
[email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to