- Notifications
You must be signed in to change notification settings - Fork1.1k
Should we be able to put root capability in type parameters of classes?#15059
-
Currently CC experiment allows types like Even an immutable collection like However, forbidding such types rules out the most natural way to migrate existing code to capture checking, i.e. simply putting /cc@odersky |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 1 reply
-
I think going to
typeProc= {*} ()->Unitvalxs:List[Proc]=???valx= xs.head gives Now it's a separate question whether we should allow the formation of values of this type if there's not |
BetaWas this translation helpful?Give feedback.
All reactions
-
I think it might make sense to try and stick with a magic import for unsafe code. What I like about making types like With that being said, I think we need to be careful not to blow our "strangeness budget" (in the Rust sense). Discussing how the student supervised by Ondrej and Toli could show us how much strangeness we have spent already; my feeling so far is that it's not a small amount. |
BetaWas this translation helpful?Give feedback.