Cipherd@lemmy.ml to Programmer Humor@lemmy.ml · 21 days agofunctionslemmy.mlimagemessage-square33linkfedilinkarrow-up11arrow-down10 cross-posted to: programmer_humor@programming.dev
arrow-up11arrow-down1imagefunctionslemmy.mlCipherd@lemmy.ml to Programmer Humor@lemmy.ml · 21 days agomessage-square33linkfedilink cross-posted to: programmer_humor@programming.dev
minus-squaredavel@lemmy.mllinkfedilinkEnglisharrow-up0·21 days 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:
[]{}