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

If I have a buffer in a library and the external API is “append to buffer”, each append will do a bounds check. I’m not aware of an iterator API would work especially considering that the iterator would hold ownership of the buffer which would be incompatible with the call flow returning to the user after the append.



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

Search: