Default property value with closure makes a compiler to recompile all files

前端 未结 1 1622
醉酒成梦
醉酒成梦 2021-02-09 00:13

This source has a paragraph Setting a Default Property Value with a Closure or Function where we can find an example

Here’s a skeleton outli

1条回答
  •  滥情空心
    2021-02-09 00:45

    This is a known problem in the Swift compiler. The issue is that once you use closures or lazy properties like this, every single Swift file will be type checked. I've written a blog post on this topic which you can find here.

    0 讨论(0)
提交回复
热议问题