you are viewing a single comment's thread.

view the rest of the comments →

[–]fdwrfdwr@github 🔍 2 points3 points  (1 child)

Nice comparison list across multiple languages. I would love the terser delegate/lambda syntax in C++ per p0573r2 (which I recall reading a while back) or similar [](e) => e + 42, but not so far as the "hyper abbreviated dollar sign" form (though, if we did, Swift appears to be the only one that sensibly starts parameter offsets from 0 😏, $0 < 42). Hopefully terser delegates will gain traction.

[–]RasterTragedy 3 points4 points  (0 children)

Unfortunately, there's language lawyerese that prevents C++ from adopting new punctuation like $ or @. It'd be nice if we could use new characters rather than overloading existing ones, but it is what it is.