This repository has been archived by the owner on Aug 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Swift 2 migration blog post #52
Comments
This PR: artsy/eidolon#496
Further ideas:
|
Great!! Feedback always appreciated on other sore spots, feature requests, etc. |
🙇 Thanks Brian! As for the public protocol Occupiable {
var isEmpty: Bool { get }
var isNotEmpty: Bool { get }
}
public extension Occupiable {
public var isNotEmpty: Bool {
return !isEmpty
}
}
extension String: Occupiable { }
public extension Optional where Wrapped: Occupiable {
var isNilOrEmpty: Bool {
return self?.isEmpty ?? false
}
var isNotNilNotEmpty: Bool {
return !isNilOrEmpty
}
} I just don't know if this is a good idea. I mean, why not, eh? But it doesn't seem very idiomatic. |
Also, need to remove |
This was referenced Aug 27, 2015
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expectations vs reality, sore spots, easy wins, ways to avoid hard times migrating to Swift 2.1, reasons why to/to not migrate now, lessons learnt.
The text was updated successfully, but these errors were encountered: