I can’t help but suspect it doesn’t offer much and you may as well just use match
statements for whenever you want pattern matching, however many times it might be slightly more verbose than what you could do with if let
.
I feel like I’d easily miss that pattern matching was happening with if let
but will always know with match
what’s happening and have an impression of what’s happening just from the structure of the code.
If let sounds like swift to me which is used there in common practice.