logoalt Hacker News

woadwarrior01 • today at 9:34 PM • 0 replies • view on HN

Swift explicitly has a guard statement for this. Rust's let .. else { ... } is also very similar.

https://docs.swift.org/latest/documentation/the-swift-progra...