Knocking off two more vestiges of legacy switch

Joe Darcy joe.darcy at oracle.com
Tue Sep 13 16:48:15 UTC 2022


On 9/12/2022 3:29 PM, Remi Forax wrote:
>
>
> ------------------------------------------------------------------------
>
>     *From: *"Brian Goetz" <brian.goetz at oracle.com>
>     *To: *"amber-spec-experts" <amber-spec-experts at openjdk.java.net>
>     *Sent: *Monday, September 12, 2022 9:36:09 PM
>     *Subject: *Knocking off two more vestiges of legacy switch
>
>
[snip]
>
> I agree, it's quite sad that we have to support float and double but 
> as you said composition is more important.
>
It is common for math library methods to have a preamble to screen out 
special values (infinities, NaN, 0.0, 1.0, etc.).

This would be a reasonable use of a switch on float/double switch.

-Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-spec-observers/attachments/20220913/d4a0b150/attachment-0001.htm>


More information about the amber-spec-observers mailing list