mirror of
https://github.com/zhigang1992/Argo.git
synced 2026-04-29 13:25:41 +08:00
Mention the operators we're using for map and apply.
This commit is contained in:
committed by
Tony DiPasquale
parent
255fae9997
commit
ec1ad342b3
@@ -1,10 +1,11 @@
|
||||
## Functional Concepts
|
||||
|
||||
Argo really wants to be used with patterns borrowed from functional programming
|
||||
such as `map` and `apply`. We feel that these patterns greatly reduce the pain
|
||||
felt in trying to use JSON (an inherently loosely typed format) with Swift (a
|
||||
strictly typed language). It also gives us a way to succinctly maintain Argo's
|
||||
core concept, and short circuit the decoding process if any part of it fails.
|
||||
such as `map` (`<^>`) and `apply` (`<*>`). We feel that these patterns greatly
|
||||
reduce the pain felt in trying to use JSON (an inherently loosely typed format)
|
||||
with Swift (a strictly typed language). It also gives us a way to succinctly
|
||||
maintain Argo's core concept, and short circuit the decoding process if any part
|
||||
of it fails.
|
||||
|
||||
Additionally, we feel that the use of operators for these functions greatly
|
||||
improves the readability of the code we're suggesting. Using named functions
|
||||
|
||||
Reference in New Issue
Block a user