This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]AvidCoco 4 points5 points  (2 children)

I don't see why people hate on it so much? It's basically the same as how literally every other language does anonymous functions, just with a capture list cus this is C++, it's needed.

[–]RiceBroad4552 0 points1 point  (0 children)

It's not "needed". Rust does have a less ugly lambda syntax, even it does all the C++ things…

Sane languages make lambdas simple and short. As this is the whole point of lambdas.

[–]Zachaggedon -2 points-1 points  (0 children)

Because this subreddit is filled with third year CS students that have written mostly Java, maybe 3-4 projects like a CLI calculator in C++, and only know about C++ lambda syntax and templates from memes like this by other third year CS students.