[swift-evolution] Extending trailing closure sugar similar to property accessors
Eric Summers
eric_summers at icloud.com
Thu Nov 2 20:16:58 CDT 2017
That makes sense. I thought there may be a parsing trick involved with the way property accessors are designed.
> On Nov 2, 2017, at 9:00 PM, Slava Pestov <spestov at apple.com> wrote:
>
> This is not possible in general, since we want the parser to be able to parse code without having knowledge of declarations and their types (which might come from other modules). Overloaded declarations complicate this further.
>
> I agree that the existing property syntax already has this issue, which is unfortunate, but we should not introduce features that make the problem worse.
>
> Slava
More information about the swift-evolution
mailing list