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

Disagree. In my experience (albeit, not very long, been writing Python since 2007 or so), assigning to a value and checking for truthiness is a very common pattern.



Very common pattern, confusing nonetheless. It does two different things at once where traditionally Python is explicit and only does one thing at once.


This is probably the one argument against it that I agree with: I don't actually like it when I see it in other languages!




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

Search: