aki-nyan on Nostr: I'm unreasonably happy that in C++ 23 you can now have a lambda that has every ...
I'm unreasonably happy that in C++ 23 you can now have a lambda that has every syntactically relevant pair of braces in the language
```
auto nya{[]<typename... Args>(Args... args){ return (... | args); }};
```
Truly wonderful~
Published at
2024-01-07 19:11:07Event JSON
{
"id": "749cb78fb6f9d8ec8e45856228f2f25df9b0351a1a2b1ac778ff43fdeeb77bef",
"pubkey": "64f7665920ec237576eb14da0ee674877d256630df7ee574d790c23dbf2ad789",
"created_at": 1704654667,
"kind": 1,
"tags": [
[
"proxy",
"https://chaos.social/users/lethalbit/statuses/111716248271952124",
"activitypub"
]
],
"content": "I'm unreasonably happy that in C++ 23 you can now have a lambda that has every syntactically relevant pair of braces in the language \n\n```\nauto nya{[]\u003ctypename... Args\u003e(Args... args){ return (... | args); }};\n```\n\nTruly wonderful~",
"sig": "a02456867a17351d91917c1b4c7bc10ad86004ed3299b07b88e4240d884ead8ea02e22ca43bd5d605726bf5bd0966fb51295049fae6d0e90f9d76c3ccf905069"
}