Hacker News new | past | comments | ask | show | jobs | submit login

Older code that uses specific features of that iterator will break. The slice iterator has its own methods (turn it into a slice), it's clonable and it is Copy.



It's only a breaking change to one's API to actually use the functionality, though. I don't think there's anywhere in std's public APIs where we would suddenly change from returning a concrete iterator to an "abstract" one.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: