2 ms·
> Language-level option types are not unheard of (C#, Swift and Kotlin all have a notion of this sort) Swift's Optional is a library type: https://github.com/a
by masklinn 10y ago
> Language-level option types are not unheard of (C#, Swift and Kotlin all have a notion of this sort)
Swift's Optional is a library type: https://github.com/apple/swift/blob/master/stdlib/public/core/Optional.swift#L122 https://github.com/apple/swift/blob/master/stdlib/public/cor...
Though the compiler is aware of it and it does have language-level support (nil, !, ?, if let)