thoughtbot/Argo

Document the use of the `alternate` operator

开放

#285 创建于 2015年11月4日

 (5 条评论) (0 个反应) (0 位负责人)Swift (214 个派生)batch import
documentationhelp wanted

仓库指标

星标
 (3,455 个星标)
PR 合并指标
 (30 天内没有已合并 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)

贡献者指南