-
-
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
Change one
to onemult
#36103
Comments
What about adding the 2-arg Edit |
I think |
"Why is there |
This ship has probably already sailed, but I've often thought that |
This would make a lot of functions type-unstable. e.g. |
Of course if the type is known then one should return the zero element of that type. I’m thinking of cases where the type is not known. But even if it were used in general, the return type would be |
Singleton zero is discussed in #34003. I also mentioned other identities there too. I think it's better to focus on |
How about deprecating to In all other cases (that I can think of) you can either use |
This is a persistent source of confusion (most recently #36099), and there are incorrect definitions of
one
scattered across the ecosystem. (We're still deprecating them in Colors-world.) The best answer is to@deprecate one onemult
and simply not have a function calledone
.The text was updated successfully, but these errors were encountered: