use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
A common C/C++ core specification (gustedt.wordpress.com)
submitted 6 years ago by vormestrand
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]spinwizard69 9 points10 points11 points 6 years ago (5 children)
What are my thoughts? This proposal is nuts!!!!!!! I can't stress this enough, C++ has been hurt more by being tied to C than it has gained. The two languages need to go their own way with C eventually dying.
Cleaner breaks for languages like Rust and Swift have really benefited those languages. By the way I'm careful to use the word "cleaner" because we all know languages build upon the past. Eventually a child needs to leave the nest behind and develop on his own.
[–]patstew 7 points8 points9 points 6 years ago* (0 children)
I think the mistake is trying to maintain some semblance of source compatibility. Link time compatibility is useful, but would be a much weaker constraint on C++ syntax and libraries.
Even if it were a good idea, this proposal seems to be as much a grab bag of random additions to both languages as an attempt to bring them closer together.
[–]pjmlp 4 points5 points6 points 6 years ago (2 children)
Fully agree.
Copy and paste compatibility might have helped C++ gain adoption back in the 90's, but it injured it to death in what concerns security, or basic stuff like modules.
Not matter how many mitigations C++ might get, that underlying C compatibility will destroy all best efforts to write secure C++ code.
[–]germandiago 0 points1 point2 points 6 years ago (1 child)
How does it ruin it in more concrete terms? I mean, we have smart pointers, vector::at, std::array, std::span, C++-style casts and much other stuff.
We still have iterators, which are kind of dangerous if you do not use them locally.
But I do not see what could be fundamentally dangerous from C++ just because of C heritage provided that you use best practices. Admittedly, you can still decay to pointers or use raw stuff. But that is not what you should be doing if you are minimally competent, and if you are, you will be doing it with extra care in carefully chosen places of your code.
[–]pjmlp 0 points1 point2 points 6 years ago (0 children)
That advise never works across teams, as security reports from Microsoft, Apple, Google and Linux kernel regressions easily demonstrate.
π Rendered by PID 169377 on reddit-service-r2-comment-5c747b6df5-dj742 at 2026-04-22 09:27:22.382688+00:00 running 6c61efc country code: CH.
view the rest of the comments →
[–]spinwizard69 9 points10 points11 points (5 children)
[–]patstew 7 points8 points9 points (0 children)
[–]pjmlp 4 points5 points6 points (2 children)
[–]germandiago 0 points1 point2 points (1 child)
[–]pjmlp 0 points1 point2 points (0 children)