Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

* STL algorithms typically operate on half-open ranges bounded by iterators [first, last). This convention is not used as often in C*

I don’t think this is true. p != end is a very common check in C?

Regarding composition, I suppose it’s kind of true. The string functions in the C standard library for example unfortunately often return null instead of end. I use functions that return end instead, which makes C code much more elegant.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: