deprecate boolean evaluation of floating point and character types
Guillaume Piolat
first.name at gmail.com
Fri May 10 19:25:45 UTC 2024
On Tuesday, 30 April 2024 at 17:01:42 UTC, Basile B. wrote:
>
> instead of an assertion failure what we should get is rather a
> message such as
>
> error, cannot evaluate `f64` to a `bool`
With float you often want to be more specific anyway.
Do you mean isFinite?
Do you mean !isNaN?
Do you mean non-zero?
Can't really see a legit use for: if(float) { }
More information about the dip.ideas
mailing list