Open nwellnhof opened 5 years ago
I think that the DivideByZero failures in Num.p6 simply have to be removed.
The current behaviour is part of 6.c specification, so the fix is more involved than simply removing those Failure
s. It has to be language-version based.
That was on 6.d roadmap, but is "blocked" by R#1289 and so was deferred until later language version. I use "blocked" in quotes because technically we can currently re-define these operators in 6.e.PREVIEW language already, but:
Thus, trying to make it work right now would at the very least be fragile and messy, so the hope is that once we figure out all the semantics to have R#1289 closed we will have figured out how to handle language-version control of these ops' behaviour as well.
I'm seeing:
I'd expect to see
Inf
(as mandated by IEEE 754) andNaN
(like POSIXfmod
).