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

It depends on what x is and what do_something() does.

Most often than not in my code that wouldn't break functionality. In the case of dates it is broken, so same code pattern there would be broken.

At this point a lot more functionality would break if 0 become non-False or threw a TypeError exception.



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: