r/ProgrammerHumor • • Aug 01 '22

>>>print(“Hello, World!”)

Post image
60.8k Upvotes

5.7k comments sorted by

View all comments

Show parent comments

11

u/Alphard428 Aug 02 '22

It's defining an empty lambda and calling it. Captures nothing (the square braces), takes no arguments (first parentheses), has an empty body (curly braces), and is invoked (second parentheses).

2

u/CanadaPlus101 Aug 02 '22

TIL C++ has lambdas.