News for hackers. Stuff that matters.
Re:Metaclasses: Thoughts on generative C++ by yoklov on Friday July 28, 2017 @03:00AM (#14872499)
> The basic problem with C++ is that it has heavy encapsulation without memory safety. No other language has that.

I think in general these things are unrelated, unless you stretch the definition of memory safety rather far.

Also, you can hide things in C, just it's not always zero cost. Put private fields in a forward declared struct that's not implemented in any headers, use static for private functions (also outside of headers).

There are no comments on this comment yet.