News for hackers. Stuff that matters.
Re:Matt Godbolt sold me on Rust by showing me C++ by GrantMoyer on Wednesday May 07, 2025 @09:43AM (#43915598)
C++ has this[1], kind of, but please don't actually use it.

> for_each(a.begin(), a.end(), std::cout << _1 << ' ');

Also, Scala has something similar as a first class feature[2].

[1]: https://www.boost.org/doc/libs/1_88_0/doc/html/lambda.html

[2]: https://scala-lang.org/files/archive/spec/3.4/06-expressions...

There are no comments on this comment yet.