Draft JEP on Primitive types in patterns, instanceof, and switch
Pedro Lamarão
pedro.lamarao at prodist.com.br
Fri Jan 27 19:21:11 UTC 2023
Em sex., 27 de jan. de 2023 às 16:07, Kevin Bourrillion <kevinb at google.com>
escreveu:
> I think the mental models we gravitate to, and that serve us best, are the
> functional ones: the ones that most tangibly correlate choices we might
> make to outcomes we might get. Talking of gravity, if I'm standing at the
> edge of a rooftop, my mental model of gravity is not particles
> attracting each other by the inverse square, it's "if I take a step, I will
> at best be in a lot of pain".
>
When your mental model tells you that "chairs are for sitting", and then
you need someplace to put your backpack on, then you look at a chair and
think, "no this is for sitting not for putting backpacks", then your
apparently functional mental model becomes a limiting one.
I honestly don't understand what the fuss is about.
A new universal dispatch control structure is being designed right in front
of our eyes.
This discussion is reminding me of Donald Knuth criticizing structured
programming.
--
Pedro Lamarão
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20230127/395fb10b/attachment.htm>
More information about the amber-dev
mailing list