Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
coke opened this issue Jul 23, 2024 · 1 comment
Open

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

coke opened this issue Jul 23, 2024 · 1 comment
Labels
language Changes to the Raku Programming Language

Comments

@coke
Copy link
Contributor

coke commented Jul 23, 2024

::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

rakudo/rakudo@2e72652

@coke coke added the language Changes to the Raku Programming Language label Jul 23, 2024
@lizmat
Copy link
Collaborator

lizmat commented Sep 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language Changes to the Raku Programming Language
Projects
None yet
Development

No branches or pull requests

2 participants