Skip to content

Codable #36

@s4cha

Description

@s4cha

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions