Re:Don't let dicts spoil your code
by aatarax on Tuesday October 08, 2024 @11:51PM
(#41784367)
Dicts in python are for when you have a thing and you aren't sure what the keys are. Dataclasses are for when you have a thing and you're sure what the keys (attributes are). The trouble is when you have a thing and you're sort of sure, but not entirely sure, and some things are definitely there but not everything you might be thinking of.
[ Parent
| on HN ]
There are no comments on this comment yet.