Created
July 25, 2023 16:48
-
-
Save boki1/ac24da6c8cdea2e3bba03b8445cf6c33 to your computer and use it in GitHub Desktop.
Since c++23 supports attributes on lambdas, @lefticus came up with this real beautiful snippet of C++.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// | |
/// Valid syntax for whatever reason :D. | |
/// See https://www.youtube.com/watch?v=YlmxNJnone0 for details (if you dare). | |
/// | |
int main() { | |
auto l = [][[]]([[]] auto) [[]] { return 42; }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment