-
-
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
Rename isimmutable trait to ismutable #34518
Comments
I'm in favor. This naming is left over from when immutables where introduced with the |
also, |
See also the discussion in #18168. |
Agree. In fact we can add |
I think the main reason for the existence of this name might be that they aren't necessarily exact opposites in the type domain (isimmutabletype). In particular, for Abstract and Union, we have that some of the instances might be mutable and others constant. (though also, we have now that |
|
It seems that this issue is closed now. Is it still open? |
Yes seems to be fixed in #34518 |
Based on recent discussions on slack, I noticed that the trait
isimmutable
is an exception to the rule compared to otheris*
traits in the language. For a conceptfoo
we usually haveisfoo
as the trait, and!isfoo
as the negation. However, with the conceptmutable
, we currently haveis(not)mutable
(a.k.a.isimmutable
) implemented as the trait.Would it be possible to deprecate
isimmutable
in favor of the more readableismutable
trait?The text was updated successfully, but these errors were encountered: