Hacker News new | ask | show | jobs
by Graffur 1455 days ago
So types solve this right? Or am I misunderstanding?
1 comments

I'd rather phrase it as "well-defined data structures help maintain your app." In another comment, leetrout recommended using named tuples. They define a list of their attributes without saying anything about their types, and this may be a perfect choice for some scenarios.