Swift Functional Programming(Second Edition)
上QQ阅读APP看书,第一时间看更新

Stateless programming

Swift provides very powerful structures and enumerations that are passed by values and can be stateless, and, therefore, very efficient. Stateless programming simplifies the concurrency and multithreading, as pointed out in previous sections of this chapter.