Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Rust copied 'if let' from Swift (~2 years ago) despite having decent pattern matching; community consensus today is that it's highly worthwhile as a feature.

Rust copied 'if let' and made it far nicer and more capable by allowing arbitrary fallible pattern matches to be the condition. Then Swift 2 copied that improvement back with 'if case'.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: