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

"Types" beyond the basic ones, in general, are needed only when you have to define complex data structures that can hold multiple variables in one.

What Python really needs is an easy, built-in way to create mutable structs, without an overhead of creating classes. I think it's a failure of language design to miss such a useful and basic feature.

For everything else, use a function.



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

Search: