[swift-users] overloading methods where only difference is optional vs. non-optional type

2017-10-10 Thread Phil Kirby via swift-users
2 down vote favorite Original StackOverflow post: https://stackoverflow.com/questions/46620311/overloading-methods-where-only-difference-is-optional-vs-non-optional-type I was under the impression that swift can have overloaded methods that differ only in the type of object that the methods return

[swift-users] Redundant superclass constraint

2017-10-24 Thread Phil Kirby via swift-users
Original StackOverflow post: https://stackoverflow.com/questions/46924554/redundant-superclass-constraint-in-swift-4 I'm getting a Redundant superclass constraint... warning in swift4: (paste in a playground) import CoreData class Item : NSManagedObject {} protocol DataSourceProtocol { asso