Skip to content

Commit

Permalink
Value and type parameter packs. (apple#1956)
Browse files Browse the repository at this point in the history
* Add a draft proposal for parameter packs.

* Fix the type of postfix ... operator in the ambiguity example.

* update pitch (#1)

* Add missing SE proposal information.

* Replace the '...' syntax with 'repeat each'.

* Add more introductory explanation to the proposed solution.

* Update proposals/NNNN-parameter-packs.md

Co-authored-by: Remy Demarest <remy.demarest@gmail.com>

* Address editorial feedback

* Add pack iteration and pack element projection to the future directions.

* Move local value packs and add explicit pack syntax to future directions.

* Describe single-element tuple unwrapping under pack substitution.

* Simplify the description of same-type requirements involving parameter packs.

* Update proposals/NNNN-parameter-packs.md

Co-authored-by: Becca Royal-Gordon <beccadax@apple.com>

* Move the introduction above the table of contents.

* Specify trailing closure matching rules for parameter packs.

* Replace the term "type sequence" with "type list" to avoid confusion with the
Sequence protocol.

* Add more commentary on the `repeat each` syntax design.

* Minor editorial changes

* Describe how variadic generic functions interact with overload resolution.

* Update pitch links.

* Update 0393-parameter-packs.md

---------

Co-authored-by: Slava Pestov <sviatoslav.pestov@gmail.com>
Co-authored-by: Remy Demarest <remy.demarest@gmail.com>
Co-authored-by: Becca Royal-Gordon <beccadax@apple.com>
Co-authored-by: Xiaodi Wu <13952+xwu@users.noreply.github.com>
  • Loading branch information
5 people committed Mar 21, 2023
1 parent b12d504 commit ef26a79
Showing 1 changed file with 837 additions and 0 deletions.

0 comments on commit ef26a79

Please sign in to comment.