thoughtbot/Argo

Document the use of the `alternate` operator

オープン

#285 opened on 2015/11/04

 (5 件のコメント) (0 件のリアクション) (0 人の担当者)Swift (214 件のフォーク)batch import
documentationhelp wanted

Repository metrics

Stars
 (3,455 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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)

コントリビューターガイド