-
-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
TODO
Look for all differences with codable and list them.
Codable
- 1 parsing fails all fails
- Fine grained error handling
- Need 1 custom parsing need to write all encodable method
- Default parsing matching existing keys
- No type inference (apart from dates)
- Yields a new object
- Quite verbose
Arrow
- Best effort parsing, ignoring fails
- No error handling (seldom used when getting data from a webservice)
- No default parsing
- Type inference out of the box (sy string identifier to an int for example)
- Can parse and fill an existing object
- Custom date parsing on a case per case basis
- Very concise syntax
Having compared Arrow with Codable in a big iOS App, I still believe there's an advantage using Arrow.
@maxkonovalov I would love to know your feelings on Codable vs Arrow :)
Metadata
Metadata
Assignees
Labels
No labels