What is the benefit of nesting functions (in general/in Swift)

前端 未结 3 1881
天命终不由人
天命终不由人 2020-12-06 03:04

I\'m just learning some Swift and I\'ve come across the section that talks about nesting functions:

Functions can be nested. Nested functions have acc

3条回答
  •  死守一世寂寞
    2020-12-06 03:51

    One really nice thing is that Xcode will indent nested functions within their parent function in the function pop-up. The function popup is much easier to navigate with functions related to recalculating the layout indented and all grouped in one place.

    image

提交回复
热议问题