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

While discussing code review, howabout shooting whoever wrote that comment.

Why is there an assert? Python case a cast function if you really wanted to force the typechecker to see a_thing as Thing but (and I'm sure this is the point you are making) you are likely hiding a prolem.



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

Search: