3 ms·
By the way C++ standardized it? Yes, the only big difference is property accessors. By convention? Nope. The term struct pretty much stands for a pure data con
by talles 13y ago
By the way C++ standardized it? Yes, the only big difference is property accessors.
By convention? Nope.
The term struct pretty much stands for a pure data construct. C++ attempted (and pretty much failed) to make this distinction. Some languages, like C#, did a much better job.
In the real world we are always urging to being consistent. While other languages do a pretty good job by enforcing it, on C++ this is more on your shoulders.