-
Notifications
You must be signed in to change notification settings - Fork 44
DecodedType is removable at Swift 2.1 #97
Copy link
Copy link
Closed
Milestone
Description
Swift2.1 function is returnable Self type in class, so I think we don't need DecodedType now.
public protocol Decodable {
/// - Throws: DecodeError
static func decode(e: Extractor) throws -> Self
}That is destructive change, but it has some advantages.
- as Decodable.
Now we cannot cast any value toDecodablebecause it has associated type.
If it removeDecodable, we will able to do it. - Support subclass.(restrict)
Himotoki don't support subclass now, becauseDecodedTypebounds base class.
But swift don't support override extensions function, the merit will be restrict. - Integration operators.(Array, Dictionary, Optional.)
If you aspect runtime check.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels