thoughtbot/Argo

Document the use of the `alternate` operator

Open

#285 aberto em 4 de nov. de 2015

Ver no GitHub
 (5 comments) (0 reactions) (0 assignees)Swift (214 forks)batch import
documentationhelp wanted

Métricas do repositório

Stars
 (3.455 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Related: #284

Our use of Alternative is something that sticks out to me as being insanely powerful, but we don't talk about it ever. We should add some documentation around this. Ideas:

  • Decoding multiple JSON formats
  • Decoding into enums rather than structs
  • Decoding from different JSON types (int/string as in #284)

Guia do colaborador