Swift 3’s “Never”

Erica Sadun: SE-0102 removes the rarely-used @noreturn function type and replaced it with a dead-end return type[…][…]Never allows a function or method to throw: e.g. () throws -> Never. Throwing allows a secondary path for error remediation, even in functions that were not expected to return.As a first class type, Never works with generics in … Continue reading Swift 3’s “Never”