@Ambraven@social.mochi.academy
Post #2564793
2026-04-29 21:21 UTC
@benjamingeer@piaille.fr
In this case I don't think unwrap is bad since it can't be none at this point in the code. I would probably still use expect or '?' in production.
I like the use of match but it's going to grow really quick if you add parameter.
It probably should never have to scale if we're being a bit real.
Replies (1)
-
@benjamingeer@piaille.fr 2026-04-29 21:24
@Ambraven@social.mochi.academy It just occurred to me that it might be possible to write a macro to generate the match statement with all the permutations for any number of parameters... but I'm not going to write it tonight. 😆