News for hackers. Stuff that matters.
Re:Const vs. constexpr vs. consteval vs. constinit in C++20 by gavinray on Monday November 28, 2022 @12:03PM (#33776117)
Aye, as opposed to D where structs are value types and classes are reference types

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

Re:Const vs. constexpr vs. consteval vs. constinit in C++20 by dagmx on Monday November 28, 2022 @12:33PM (#33776553)
Yeah I do the same as you since I write a ton of Swift (which does the same delineation as D).

It’s mostly just a mental marker for myself that I want to treat one as a value type.