----- Original Message -----
> From: "Brian Goetz" <[email protected]>
> To: "joe darcy" <[email protected]>, "Amber Expert Group Observers" 
> <[email protected]>, "Remi Forax"
> <[email protected]>
> Cc: "amber-spec-experts" <[email protected]>
> Sent: Tuesday, September 13, 2022 6:55:49 PM
> Subject: Re: Knocking off two more vestiges of legacy switch

>> 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.
>>
>>
> 
> Which raises some questions (again) of the semantics of constant
> patterns for exotic floating point values, especially (again) negative zero.

You mean, do we use == or Float.equals()/Double.equals() ?

I will vote for the later, like with records.

Rémi

Reply via email to