thoughtbot/Argo

Document the use of the `alternate` operator

Offen

#285 geöffnet am 04.11.2015

 (5 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Swift (214 Forks)batch import
documentationhelp wanted

Repository-Metriken

Stars
 (3.455 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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)

Contributor Guide