TLDR Web Dev · OPINIONS & ADVICE
DON'T RETURN NAMED TUPLES IN NEW APIS
Summary from the TLDR Web Dev newsletter
Using named tuples for new APIs is discouraged due to their complexity. While they might seem simple to define, they introduce dual access methods (index-based and attribute-based) that increase complexity and also allow for potentially unwanted operations like slicing and iteration.