Draft JEP on Primitive types in patterns, instanceof, and switch

Kevin Bourrillion kevinb at google.com
Thu Jan 26 21:34:08 UTC 2023


On Thu, Jan 26, 2023 at 1:09 PM Pedro Lamarão <pedro.lamarao at prodist.com.br>
wrote:

Depending on float equality is *dangerous*, but doesn't completely lack
>> valid use cases.
>>
>
> With some kind of epsilon predicate, this should become more useful.
>

Sometimes, but intransitive "equivalence" is one problem traded for another.

-- 
Kevin Bourrillion | Java Librarian | Google, Inc. | kevinb at google.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20230126/c7911e21/attachment-0001.htm>


More information about the amber-dev mailing list