`if let` shorthand

@Ben_Cohen discussed this somewhat recently in a reply to Let's fix if let syntax:

So I get the impression that there is some openness to considering this sort of proposal.

I agree with @bzamayo's point here:

imho this proposed syntax doesn't "favor terseness over clarity" because it is equally as clear as the existing syntax (or at least isn't any more "magical" than the existing syntax). And if it's equally / sufficiently clear, then reducing duplication seems like a clear readability win.

3 Likes