Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Const vs. constexpr vs. consteval vs. constinit in C++20. Parent comment
It's just a small annoyance to have to put "public:" at the top of every data-class definition
So I use structs everywhere but you're completely right, no real difference
It’s mostly just a mental marker for myself that I want to treat one as a value type.
It's just a small annoyance to have to put "public:" at the top of every data-class definition
So I use structs everywhere but you're completely right, no real difference