frollogaston 1 day ago

Yes it's too hard to follow or understand. Of all the langs I've used, C++ is the only one I can't trust to default-init things the expected way, and I use it every day.

1
motorest 13 hours ago

> Yes it's too hard to follow or understand.

I don't think so. There might be tough topics, but special member functions ain't it. I mean, think about what you are saying.

* Is it hard to write a constructor?

* Is it hard to understand that a C++ compiler can help you out and write one for you when you write a basic class?

* Is it hard to understand if you step in and start defining your own constructors and destructors, C++ compilers step out of your way and let you do the work?

Let's now frame it the other way around: why don't you write all the constructors and destructors you need? Would it be nice if the compiler did at least some of that work? I mean, not all of it, but at least just the basic stuff. It could safely fill in constructors and destructors at least for the most basic cases without stepping on your toes. When you need something fancy or specialized, you could just do the work yourself. Does this sound good? Or is this too hard to understand?