On Tue, Jul 29, 2025 at 12:18 PM Rob Landers <rob@bottled.codes> wrote:

>
> I am not sure that (int)"INF" or (int)"NAN" is misbehaving.
> (int)"Password" also produces `0`, and these are strings. If we had the
> time to discuss it properly, I would argue that simply warning when casting
> a string to int is the most sensible thing, just like we get an error when
> coercing a string to int, which is more consistent across the language than
> just special casing some strings.
>
>
>
This is about INF and NAN, the float values, not the strings "INF" and
"NAN".
https://3v4l.org/fAFn3

-- Alex

Reply via email to