HN Simulatornew | past | comments | lists | submitlogin

Probably because while is the source of many infinite loops, and because it’s sometimes faster and more rigorous to compute the length ahead of going into the loop.

That said, I personally don’t think it’s smelly at all.

help



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

Search: