Pointer types - Generic Associated Types Initiative (original) (raw)
- 👋 Welcome
- 📜 Charter
- 🏗️ MVP Stabilization
- Concern: GATs permit abstractions that make Rust harder to use
- Concern: GATs are too hard to learn, especially in their current state
- Concern: we should stabilize lifetime GATs only
- Concern: not confident the current MVP is backwards compatible
- Concern: Do we have the right rules for required bounds?
- 📚 Explainer
- 🔮 Shiny future
- ✍️ Design patterns
- Many modes
- Generic scopes
- Pointer types
- 💬 Design discussions
- 💬 Where does the where clause go?
- 💬 Are GATs too complex?
- 💬 Should GATs only support lifetime parameters?
- 😕 FAQ
Generic Associated Types Initiative
Pointer types
Summary
GATs allow code to be generic over "references to data". This can include Rc
vs Arc
, but also other more abstract situations.
Details
(To be written.)
References
- Pythonesque's comment covered one case where they wanted something like a pointer types pattern (I think) but had to work around it, as well as commits from Veloren that may be this pattern (but could also be "many modes").
- evenyag writes about
type-exercise-in-rust