Skip to content

Commit bf83d5b

Browse files
committed
legacy types as iterators for new types would break convention
1 parent 22d4d99 commit bf83d5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/3550-new-range.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ We believe that it is best to keep the `Range` naming for several reasons:
390390

391391
We could choose to make `new_range.into_iter()` resolve to a legacy range type. This would reduce the number of new types we need to add to the standard library.
392392

393-
But the legacy range types have a much larger API surface than other `Iterator`s in the standard library, which typically only implement the various iterator traits and maybe have a `remainder` method. This can reduce optimization potential for the iterators, possibly limiting performance.
393+
But the legacy range types have a much larger API surface than other `Iterator`s in the standard library, which typically only implement the various iterator traits and maybe have a `remainder` method. Using the legacy range types this way would break convention and could reduce optimization potential for the iterators, possibly limiting performance.
394394

395395
# Prior art
396396
[prior-art]: #prior-art

0 commit comments

Comments
 (0)