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

This drives me crazy. Rather than a uniform separation of object definition and object graph assemblage, we'll just weld arbitrary parts of the object graph assemblage to arbitrary object definitions and write a unique snowflake hack in each test case to work around it, all because we can. The lack of consistency will make the entry point every bit as illegible if not worse, but surely if we weren't supposed to write code this way, Python would make it difficult.

Honestly, this is my favorite argument for static typing. Stupidity should be difficult.

I say this as a Python developer. We waste a lot off time debating this in code review and debugging this junk code when it inevitably leads to bugs or inexplicably broken test cases. Static typing would have precluded these hacks (and others).



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

Search: