Comment

Comment by the__alchemist

I think the best option for this, which is one listed in the article, is the dataclass. It's like a struct in C or Rust. It's ideal for structured data, which is, I believe, what a named tuple is intended for.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton