9. mkBlog <*> int(dict,"id")
<*> string(dict,"name")
<*> bool(dict,"needspassword")
<*> (string(dict, "url") >>= toURL)
@ C H R I S E I D H O F
J S O N PA R S I N G I N S W I F T
26. VA L U E T Y P E S
• structs
• enums
• (tuples)
27.
28. @ A N D Y _ M AT U S C H A K
• Functional Swift Conference: Functioning as a
Functionalist
• Realm: Controlling Complexity in Swift
29. W H AT A B O U T S U B C L A S S I N G ?
• WWDC 2015: Protocol-Oriented Programming in Swift
30. – F U N C T I O N A L S W I F T B O O K
“Almost all types in Swift are value types, including
arrays, dictionaries, numbers, booleans, tuples,
and enums. Classes are the exception rather than
the rule.”