3 ms·
I second this. My current job is the first place I've worked where the convention is to use NamedTuples for most things I've seen dicts used for on past project
by rurp 5y ago
I second this. My current job is the first place I've worked where the convention is to use NamedTuples for most things I've seen dicts used for on past projects and I quite like the pattern. It both makes the code more readable and avoids a number of subtle bugs that can crop up.