-
Notifications
You must be signed in to change notification settings - Fork 1
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
custom disjoint rules #16
Comments
Is this going to be common? If not, you can do it with a trait hierarchy already, right? We can require that
It's verbose to If |
Indeed. This is why I was originally thinking that we would never need it. That said, I think it would be useful to be able to declare methods that are "disjoint" from one another (i.e., that they access disjoint sets of fields, as in rust-lang/rfcs#1215). I can imagine that if we grow a way to do that, we might also use it to declare overlapping fields. Certainly seems out of scope for the initial shot at this RFC, particularly since the RFC itself provides a partial means to address rust-lang/rfcs#1215. |
I see. It appears the |
I suppose the
This says |
I don't have a syntax for this, but it seems likely that we'll eventually want the ability to specify disjoint-ness in a finer-grained fashion. However, this is not unique to properties -- we probably want this on methods as well! There are a lot of open questions here on the best way to go about this.
The text was updated successfully, but these errors were encountered: