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

I agree. The benefits of static typing (catching trivial errors, documentation) usually do not outweigh the costs.

https://www.infoq.com/presentations/dynamic-static-typing



Watched the whole thing. Very articulate speaker, thanks!

Btw. going through your older posts

> Besides immutability, what are the advantages of using namedtuples instead of dicts?

fixed attributes. And they are ordered! :-)

Makes sets / db-style programming so much simpler:

    for user, name, account in users:
        ...
You can do that with conventional tuples as well, but they can't match the introspectability and the value for documentation.




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

Search: