We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba6c758 commit 7914e65Copy full SHA for 7914e65
text/0000-variadic-generics.md
@@ -190,6 +190,12 @@ there is an expression immediately before the ellipsis.
190
- Implement one of the other variadic designs, such as
191
[#1582](https://github.com/rust-lang/rfcs/pull/1582) or
192
[#1921](https://github.com/rust-lang/rfcs/pull/1921)
193
+- Include explicit `Head`, `Tail`, and `Cons<T>` associated types in the `Tuple`
194
+trait. This could allow the above syntax to be implemented purely as sugar.
195
+However, this approach introduces a lot of additional complexity. One of the
196
+complications is that such a trait couldn't be implemented for `()`, so
197
+there would have to be separate `Cons` and `Split` traits, rather than one
198
+unified `Tuple`.
199
200
# Unresolved questions
201
[unresolved]: #unresolved-questions
0 commit comments