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

> For example "a" + 1 is an error, why is u"a" + "s" not an error?

"a" + b"s" is an error in Python 3.



Sorry, that was my point. Strengthening the types in python3 solves the problem without static typing being needed at all.


ok.

Static types solve it earlier though, especially for little-exercised code paths which could be forgotten or missed in testing.




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

Search: