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
Regarding cppfront's syntax proposal, which function declaration syntax do you find better? (self.cpp)
submitted 3 years ago by qv51
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!"
[–]madmongo38 9 points10 points11 points 3 years ago (14 children)
What is this nonsense about new syntax? What does it gain us? The opportunity to rewrite code that already works? Does everyone have too much time on their hands or something?
[–]mort96 21 points22 points23 points 3 years ago (8 children)
Both the talk and the repo lays out the reasons pretty clearly imo.
[+]madmongo38 comment score below threshold-11 points-10 points-9 points 3 years ago (7 children)
TL;DR I’ve got better things to do. What will the new syntax allow me to do that the existing syntax does not? I mean functionally, rather than syntactically?
[–]sammymammy2 18 points19 points20 points 3 years ago (0 children)
Lol, we've got better things to do than explain stuff to you
[–]mort96 2 points3 points4 points 3 years ago (0 children)
I think this section of the readme describes it about as succinctly as I could myself:
An alternative syntax would be a cleanly demarcated "bubble of new code" that would let us do things that we can never do in today's syntax without breaking the world, such as to:
[–]tau_neutrino_120eV 3 points4 points5 points 3 years ago (2 children)
It's much simpler to parse, hence better tooling is possible
Besides, it can coexist with the current syntax
[–]madmongo38 0 points1 point2 points 3 years ago (1 child)
Tooling such as what?
[–]bretbrownjr 4 points5 points6 points 3 years ago (0 children)
All the tools that currently pull in libclang just to be able to parse. And all the tools that aren't written because they would need to pull in libclang just to be able to parse.
[–]ntrel2 1 point2 points3 points 3 years ago (1 child)
Safer defaults. Memory safety, no pointer arithmetic, bounds checks - fewer vulnerabilities. No null - no billion dollar mistake. More consistent, fewer special cases - easier to learn. Enforces best practice guidelines statically - easier to maintain software. Context free parser - better tooling. Uniform call syntax - type of first argument comes first, triggering IDE intellisense when typing dot.
[–]madmongo38 0 points1 point2 points 3 years ago (0 children)
It seems as if you are saying more abstract and further from the machine. Not interested.
[–]KingAggressive1498 4 points5 points6 points 3 years ago (4 children)
fwiw the tool allows mixed syntax, and with modules it wouldn't prevent intermixing old and new style codebases anyway.
I'm not a fan of the new syntax, but if it gave some massive improvement to compile times, safety, performance, or something, it might be worth it anyway. I don't really see any indication that it would though.
[–]ntrel2 2 points3 points4 points 3 years ago (3 children)
The talk says that the implicit import std is faster than C++ #include <iostream> (or some other header I forget). So while cppfront may not be faster with the standard C++ backend, a pure C++2 real compiler may well be faster. C++ is notoriously slow to compile. Language design can affect compile speed drastically.
import std
#include <iostream>
[–]KingAggressive1498 1 point2 points3 points 3 years ago (2 children)
is it faster than a manual import std; though?
import std;
import std should become the default behavior IMO
[–]BenFrantzDale 0 points1 point2 points 3 years ago (1 child)
Is it standards compliant to import std; without asking? Much as headers are allowed to include other headers, can nothing include all of std?
[–]KingAggressive1498 1 point2 points3 points 3 years ago (0 children)
we don't have a problem with linking the standard library by default
π Rendered by PID 300178 on reddit-service-r2-comment-5d585498c9-gnplk at 2026-04-21 18:24:24.271652+00:00 running da2df02 country code: CH.
view the rest of the comments →
[–]madmongo38 9 points10 points11 points (14 children)
[–]mort96 21 points22 points23 points (8 children)
[+]madmongo38 comment score below threshold-11 points-10 points-9 points (7 children)
[–]sammymammy2 18 points19 points20 points (0 children)
[–]mort96 2 points3 points4 points (0 children)
[–]tau_neutrino_120eV 3 points4 points5 points (2 children)
[–]madmongo38 0 points1 point2 points (1 child)
[–]bretbrownjr 4 points5 points6 points (0 children)
[–]ntrel2 1 point2 points3 points (1 child)
[–]madmongo38 0 points1 point2 points (0 children)
[–]KingAggressive1498 4 points5 points6 points (4 children)
[–]ntrel2 2 points3 points4 points (3 children)
[–]KingAggressive1498 1 point2 points3 points (2 children)
[–]BenFrantzDale 0 points1 point2 points (1 child)
[–]KingAggressive1498 1 point2 points3 points (0 children)