290
functions (lemmy.nz)
submitted 9 months ago by cipherd@lemmy.ml to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] davel@lemmy.ml 12 points 9 months ago

JavaScript can do better than that:

() => {}
[-] barubary@infosec.exchange 6 points 9 months ago
[-] davel@lemmy.ml 5 points 9 months ago* (last edited 9 months ago)

Huh, I haven’t looked at C++ in decades, and I didn’t know they’d added lambda functions/expressions, in C++11. Apparently you can shorten it further: []{}

[-] bleistift2@sopuli.xyz 1 points 9 months ago

The intention was to provide a longer version for the first step of the ladder.

this post was submitted on 22 Nov 2025
290 points (99.0% liked)

Programmer Humor

43306 readers
4 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 7 years ago
MODERATORS