News for hackers. Stuff that matters.
Re:C++20 Design Is Complete: Modules, Coroutines in C++20 by Negitivefrags on Sunday February 24, 2019 @03:18AM (#19237676)
It seems to be that people seem to apply a higher bar to being a master of C++ than they do to other languages.

Yes, it's possible to come up with "gotcha" questions that are hard to answer for C++. There are dark corners of any language, C++ has more than many to be sure.

Yet it seems that C++ detractors love to roam around in these dark corners far more often than actual serious users of the language do. It's very, very rare that I have run into a misunderstanding of the language that has caused a bug. What you almost always get is a compile error, which in fact, is exactly what you want.

It's not the new features causing the bugs, it's the old ones.

It's uninitialised variables, dangling pointers, undefined behavior, etc etc etc.

And guess what, it's the new C++ features that are making those kinds of problems rarer and rarer as time goes on. It's starting to get pretty damn hard to use-after-free or leak memory.

Re:C++20 Design Is Complete: Modules, Coroutines in C++20 by pjmlp on Sunday February 24, 2019 @06:22AM (#19238149)
I love to bring up Python examples, as it is thought of being a beginners friendly language, yet many seem unaware how big the language, standard library and behaviour changes across releases actually are.
Re:C++20 Design Is Complete: Modules, Coroutines in C++20 by stochastic_monk on Sunday February 24, 2019 @08:15AM (#19238429)
My biggest issue with python is distribution: it’s a much worse headache to try to ensure your product works on other people’s machines (Python versions, dependencies, and anything with Cython just makes things worse) than just requiring a C++14-compliant compiler.
Re:C++20 Design Is Complete: Modules, Coroutines in C++20 by acqq on Sunday February 24, 2019 @07:56AM (#19238398)
Moreover the sources written for versions >= 3 are serioosly not guaranteed to work on different 3.x versions.
Re:C++20 Design Is Complete: Modules, Coroutines in C++20 by itcheeze on Sunday February 24, 2019 @01:27PM (#19239803)
Yeah, I'm learning Python now and was working through the book Learning Python which covers Python 2 and 3 there are plenty of differences to trip you up.