#rustlang TIL `GivenEnum::GivenVariant(String)` is equal to `fn(String) -> GivenEnum` and I can hand tuple variants around like closures.
Conversation
Notices
-
Embed this notice
esmevane, sorry (ironchamber@mastodon.esmevane.com)'s status on Sunday, 30-Jun-2024 05:28:35 JST esmevane, sorry -
Embed this notice
esmevane, sorry (ironchamber@mastodon.esmevane.com)'s status on Monday, 01-Jul-2024 01:19:44 JST esmevane, sorry @laund oh wow, I honestly don’t know what I’d do with this one if I were a language designer. I kind of learned of this by accident and I think that’s cool, but I’m not brand new to the language so I might be biased
-
Embed this notice
laund (laund@hachyderm.io)'s status on Monday, 01-Jul-2024 01:19:45 JST laund @ironchamber yup. i stumbled across this due to a compiler message a while ago
-
Embed this notice