Hacker News new | ask | show | jobs
by bsdpufferfish 867 days ago
C++ constructors actually make the guarantee, but it comes with other pains
1 comments

Lots of languages handle it just fine and don’t need the mess of C++ ctors.

GP is pointing out that go specifically makes it an issue.

What language do you have in mind?
Any language which supports private state: smalltalk, haskell, ada, rust, …