Friday, April 2, 2021

A proposal from the Swift Org boards for a new “let-else” syntax, for similar situation then “guard let” statement, but more readable.

A proposal from the Swift Org boards for a new “let-else” syntax, for similar situation then “guard let” statement, but more readable.


I have to admit to getting familiar with the guard and ?? Keywords, so though I would use it, I am not sure this idea is needed.  


https://forums.swift.org/t/pitch-introduce-let-else-syntax-as-alternative-for-single-expression-guard-let-else/46989


No comments:

Post a Comment