Skip to content

Commit 3d6984e

Browse files
committed
Update note about range syntax in response to feedback
1 parent 5f52e38 commit 3d6984e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

text/0000-variadic-generics.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,10 @@ of features present in Rust, potentially resulting increased complexity
178178
of the language.
179179

180180
There is also some unfortunate overlap between the proposed `(head, ...tail)`
181-
syntax and the current inclusive range syntax. However, the similarity
182-
between `start...end` and `...tail` can be disambiguiated by whether or not
183-
there is an expression immediately before the ellipsis.
181+
syntax and the current inclusive range syntax. There will need to be some
182+
discussion as to how best to overcome this. One possible path could be to
183+
use `tail...` instead, as it's not obvious that `x...` is distinct from
184+
`x..` in a useful way (inclusive vs. exclusive range to infinity).
184185

185186
# Alternatives
186187
[alternatives]: #alternatives

0 commit comments

Comments
 (0)