-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
TODO after 0.7: DomainError() should be equivalent to DomainError(nothing) #23132
Comments
It is an intentional deprecation warning, see #22751 |
I don't see a discussion regarding the deprecation warning in the issue? |
What do you mean? Zero-arg DomainError() was deprecated in the linked PR. Lines 1544 to 1548 in 83007fb
|
RIght. My point is that I think |
Why? The point of #22751 was to make |
The new feature is great. I have no problems with it. Considering the misunderstanding, I think this should be reopened. |
@timholy : Since you implemented this feature, care to share any insight on this? |
Perhaps unsurprisingly, I agree with @fredrikekre ---without a deprecation warning, people won't change their code, and consequently we'll still have impenetrable errors in production code. I agree that for "quick scripting" for your own personal use, there might be times when you don't want to bother being explicit about the nature of the problem, but I think that's a minor disadvantage compared to the benefits. The only reason it wasn't worse before was that we used to do something clever to try to be at least a bit informative, but I think that being stupid is much better than being clever when you can get away with it (and now we can). After 1.0 comes around we could consider adding the fallback you're asking for, but because the next release would be the first (only) with a depwarn I think we have to leave it the way it is now. |
@timholy Thanks for the clarification. I think it would then be best to add something to Compat to allow using this feature in a backwards compatible manner with 0.6 . |
Good idea (and I should have thought of this myself). I am pretty swamped for the next couple of days, so if you're in a hurry I'd appreciate some help. But I will put this on my TODO list if no one beats me to it. |
IMO this should not throw a warning . Was this intentional so that package authors start using the new feature?
The text was updated successfully, but these errors were encountered: