Re: JEP 445 (Unnamed classes): It’s.. still weird (structurally typed).
Red IO
redio.development at gmail.com
Tue May 9 21:09:34 UTC 2023
I always through System.console() was designed as the scanner successor in
terms of std.in/out. It provides feedback rather a console even exists and
provides useful functionality for console application. Meanwhile many of
the Console class methods are equal to the interface suggested here.
Correct me if I'm wrong but aren't tutorials just "behind the loop" that
even new tutorials teach scanner and input streams instead of their modern
improved counterparts?
Great regards
RedIODev
On Tue, May 9, 2023, 21:47 Brian Goetz <brian.goetz at oracle.com> wrote:
> I don't disagree that Scanner is suboptimal, and I'm happy to entertain
> proposals for a replacement. But that's a separate project, and I think
> holding this one because someday we can improve Scanner is not the right
> move.
>
> On 5/9/2023 3:40 PM, Remi Forax wrote:
>
>
>
> Hi Brian, i agree with what you are saying, but Reiner is right on one
> point, students will run into Scanner pretty early, when we introduce loops
> in our curriculum, working on files redirected into stdin is the source of
> numerous exercises.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20230509/ccfa650d/attachment.htm>
More information about the amber-dev
mailing list