thoughtbot/Argo

Document the use of the `alternate` operator

Open

#285 建立於 2015年11月4日

在 GitHub 查看
 (5 留言) (0 反應) (0 負責人)Swift (3,455 star) (214 fork)batch import
documentationhelp wanted

描述

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)

貢獻者指南