News for hackers. Stuff that matters.
Re:The Year of C++ Successor Languages by ginsider_oaks on Monday January 02, 2023 @10:54AM (#34219234)
Sure, just make the fields of the struct private and you can make a public constructor:

https://doc.rust-lang.org/rust-by-example/mod/struct_visibil...

Re:The Year of C++ Successor Languages by IshKebab on Monday January 02, 2023 @05:34PM (#34224643)
Yeah weird question because you can use the exact same style in C++.