Cipherd@lemmy.ml to Programmer Humor@lemmy.ml · 18 hours agofunctionslemmy.mlimagemessage-square18fedilinkarrow-up1193arrow-down13 cross-posted to: programmer_humor@programming.dev
arrow-up1190arrow-down1imagefunctionslemmy.mlCipherd@lemmy.ml to Programmer Humor@lemmy.ml · 18 hours agomessage-square18fedilink cross-posted to: programmer_humor@programming.dev
minus-squaredavel [he/him]@lemmy.mllinkfedilinkEnglisharrow-up3·edit-217 hours agoHuh, 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: []{}
C++:
[](){}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:
[]{}