Don't return named tuples in new APIs
Briefly

"When you find yourself in the situation of needing your return type to describe itself and a tuple isn't cutting it anymore, then that's when you reach for a named tuple."
"For you, it doubles the data access API surface for your return type as you have to now support index-based and attribute-based data access forever."
Read at Tall, Snarky Canadian
[
|
]