Do empty closures allocate anything in Swift?

I think the answer is yes. See this post. In my understanding the closure ‘s body also needs to be saved in text section. It would be great if someone can confirm it.

1 Like