Commit graph

5 commits

Author SHA1 Message Date
vegorov-rbx
079766a0b0
Update syntax-default-type-alias-type-parameters.md
Even more examples
2021-12-03 09:55:44 -08:00
vegorov-rbx
ce6cc9c162
Update rfcs/syntax-default-type-alias-type-parameters.md
Co-authored-by: Alan Jeffrey <403333+asajeffrey@users.noreply.github.com>
2021-12-03 09:53:10 -08:00
Vyacheslav Egorov
cf54ea4254 With type pack support in type aliases, this second form with an empty list is now supported 2021-11-30 19:35:55 +02:00
Vyacheslav Egorov
74b889584a Do not allow regular type assignment to a type pack as a default parameter 2021-11-24 14:05:35 +02:00
vegorov-rbx
10a407226b
RFC: Default type alias type parameters (#61)
* RFC: Default type alias type parameters

* Update the motivating example to match actual motivating example

* Resolved review comments

* improved motivation for the feature and noted additional languages with this feature
* fixed terminology between 'argument' and 'parameter'
* brought back support for default type pack parameter values
* removed alternative syntax and described the decision between ':' and '=' in the design section
* fixed drawback text and provided an example

* Remove return type pack annotation from allowed type pack default values,type annotation syntax doesn't allow that to be stand-alone

* Generic type pack has to be referenced by generic type pack name (with ...)
2021-08-20 20:26:37 +03:00