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

NotANumber vs ArgumentError #38

Open
putianyi889 opened this issue Jun 7, 2023 · 3 comments
Open

NotANumber vs ArgumentError #38

putianyi889 opened this issue Jun 7, 2023 · 3 comments

Comments

@putianyi889
Copy link

Is this behaviour intended? Why is it?

@test-isa NotANumber

@test_throws ArgumentError ∞ + (-∞)

@dlfivefifty
Copy link
Member

The second one is because you can't return the result in a type-stable way.

I'm not sure if NotANumber is actually needed anywhere.... if downstream packages pass with an ArgumentError that could be preferable

@putianyi889
Copy link
Author

The second one is because you can't return the result in a type-stable way.

That's also a point of #37

I'm not sure if NotANumber is actually needed anywhere

It's discussed in #7

@dlfivefifty
Copy link
Member

I'm not sure my argument in #7 holds water as the same would be true for ∞ + (-∞)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants