aerospace fork
Something went wrong. Try again.
123456789101112131415/// Like Swift's built-in Optional but avoids implicit nil coercionspublic enum Nullable<T> { case just(T) case null
public var valueOrNil: T? { switch self { case .just(let value): value case .null: nil } }
public var isNull: Bool { valueOrNil == nil }}