mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-17 09:38:11 +00:00
This proposal goes into the details for these features of generics: - adapters: for creating new types compatible with existing types but with different interface implementations - associated types: allowing an interface implementation to specify some types to use in method signatures - interface parameters: creating a family of interfaces, where types can implement more than one This is a continuation of #553 . It has been summarized in these presentations: - adapters: [1](https://docs.google.com/presentation/d/1bg6q0Q9Sk4YpRbNA3D3H34xYtaEO8ScAUNUZK2UTi80/edit?resourcekey=0-6-Y6e1mfRUmHg-Zk65Gc5A#slide=id.gcf40df1c7b_0_37) and [2](https://docs.google.com/presentation/d/17KG0TeJ4OChMRdLJPS8TE_K6SoL4lFy1FUGr2CDzX-A/edit?resourcekey=0-kLnZqd5NrbGSwmbunTyB-A#slide=id.g7a37009490_0_0) - [associated types and interface parameters](https://docs.google.com/presentation/d/19hPpUjxQ0H1lUSLy5QjS2910Cpc7UdNKpF580fFsCGw/edit?resourcekey=0-ky9XGRC1I8X0Ffw6eqh7WQ#slide=id.p) Co-authored-by: Wolff Dobson <wolffg@users.noreply.github.com> Co-authored-by: Richard Smith <richard@metafoo.co.uk>
Carbon: Generics
This directory contains the collection of documents describing the generics feature of Carbon:
- Overview - A high-level description of the generics design, with pointers to other design documents that dive deeper into individual topics.
- Goals - The motivation and principles guiding the design direction.
- Terminology - A glossary establishing common terminology for describing the design.
- Detailed design - In depth description of how generic type parameters work.
Rejected alternatives- not implemented yet