Hi
On 2026-12-01 10:34, Rob Landers wrote:
It is not clear to me why `readLine()` returns `null` on EOF instead
of
throwing. This is inconsistent with `readSecret()` as the closest
relative (since it also reads entire lines), and breaks the pattern in
the try-catch example in the “Error Model” section.
I really hope `readLine()` doesn't throw on someone pressing [enter]
... that doesn't feel "exceptional" to me.
I'm not sure where you got that impression from, but no, this is not
what I am suggesting.
The RFC is already quite clear in that hitting just “Enter” will return
an empty string (not `null`). I'm expecting the Exception on a real EOF
(e.g. when the underlying physical terminal is closed).
Best regards
Tim Düsterhus