Isn’t it equivalent to passing closure as a function type parameter to responseString? The biggest advantage of this writing method that superficially simulates "functional programming" is that it eliminates the need for you to declare the resp variable outside.
Okay, I answered it myself, trailing closure, I blame me for not looking at the grammar carefully before
Isn’t it equivalent to passing closure as a function type parameter to responseString? The biggest advantage of this writing method that superficially simulates "functional programming" is that it eliminates the need for you to declare the resp variable outside.