Raku / problem-solving

🦋 Problem Solving, a repo for handling problems that require review, deliberation and possibly debate
Artistic License 2.0
70 stars 16 forks source link

X::Numeric::CannotConvert vs. X::Numeric::Real #435

Open coke opened 4 months ago

coke commented 4 months ago

::Real is an alias for ::CannotConvert - CannotConvert is used only when converting from an Inf or NaN to an Int, and in all other numeric conversions, ::Real is used (which is mostly Complex to a Real)

These should be merged into a single exception type, which looks like it was the intent in

https://github.com/rakudo/rakudo/commit/2e7265282694dc65daa81aee61dbbde8e8d103f1

lizmat commented 2 months ago

So if I understand correctly: remove ::Real and adjust the errata tests?