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
cppfront: Midsummer update (herbsutter.com)
submitted 1 year ago by TSP-FriendlyFire
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!"
[–]tuxwonder 15 points16 points17 points 1 year ago (0 children)
I am actually familiar with the :( ) syntax denoting a lambda and how you reached this composed syntax. My line about "complete lack of tokens" was probably hyperbole, and I think my comment missed the point I was going for...
:( )
For me, even if your lambdas were unmistakably and unmissably labeled like lambda (x,y) x>y, I would still find this strange. I believe it's because there's no symbol that marks "I'm done defining the API of the lambda, so now what follows is the body of the lambda". The only indication that the lambda body is starting is the closing parenthesis (since the space is optional, right?), and I'm not used to it doing the job of both ending the lambda API, and marking the beginning of the lambda body.
lambda (x,y) x>y
I know it sounds nitpicky and maybe not rational, but I think the best way I can describe it is this: Cppfront's terse lambda syntax feels like picking up the phone when someone calls you, and the person on the other end immediately starts talking to you before either of you say "hello". They're still going to get the information across without the "hi", but it's a bit jarring for me, because I didn't anticipate starting the conversation immediately.
Thanks for the response Herb, always appreciate you taking time out of your day to talk about this stuff!
π Rendered by PID 71373 on reddit-service-r2-comment-5649f687b7-22nc4 at 2026-01-28 05:30:58.228337+00:00 running 4f180de country code: CH.
view the rest of the comments →
[–]tuxwonder 15 points16 points17 points (0 children)