josh11b and Richard Smith
48b7dc3b81
:! generic syntax (#676 )
...
This implements decision #565 to use `T:! Type` to declare generic parameters, and `template T:! Type` for template parameters.
Co-authored-by: Richard Smith <richard@metafoo.co.uk >
2021-08-04 14:27:11 -07:00
josh11b
9e1816f9c0
Update method syntax in generics overview ( #634 )
...
* Implement #494 for overview.md
2021-07-15 08:55:02 -07:00
Jeremy G. Siek
2f950d279f
fix a forgotten flipping of the parameter name and type ( #643 )
2021-07-14 16:09:53 -04:00
josh11b and Chandler Carruth
d70297077b
Update terminology in generics design docs ( #610 )
...
* implicit -> deduced
* type-type -> type-of-type
* extending/refining -> extending
Co-authored-by: Chandler Carruth <chandlerc@gmail.com >
2021-06-29 13:23:35 -07:00
978e27f484
Generics overview ( #524 )
...
This adds an overview of a generics feature that attempts to achieve the goals from #24 . It has been summarized in these presentations:
- [non-type params](https://docs.google.com/presentation/d/1IZaDxP5Y3Wqprkyjzagv48tyxEeIcfz8FZS3Namsvew/edit#slide=id.p )
- [basic usage](https://docs.google.com/presentation/d/1OZiMTVW2Ommop5WTs9RyEwnGxy9yzaAPF7Cj5KUfDsY/edit?resourcekey=0-Nya0Soz3ZNs3hJan8VIrTA#slide=id.p )
- [more advanced usage](https://docs.google.com/presentation/d/1bg6q0Q9Sk4YpRbNA3D3H34xYtaEO8ScAUNUZK2UTi80/edit?resourcekey=0-6-Y6e1mfRUmHg-Zk65Gc5A#slide=id.p )
Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com >
Co-authored-by: Chandler Carruth <chandlerc@gmail.com >
Co-authored-by: Wolff Dobson <wolffg@users.noreply.github.com >
2021-06-29 10:52:45 -07:00