Re: [swift-dev] Role of Brace-Stmt in Swift AST

2016-03-23 Thread Toni Suter via swift-dev
Hi Greg, Thanks very much for the clear answer. This helps me a lot! Best regards, Toni > On 23 Mar 2016, at 17:53, Greg Titus wrote: > > Hi Toni, > > What you are seeing is a side-effect of / workaround for the use of top-level > executable statements. > > In general, at the top level of a

Re: [swift-dev] Role of Brace-Stmt in Swift AST

2016-03-23 Thread Greg Titus via swift-dev
Hi Toni, What you are seeing is a side-effect of / workaround for the use of top-level executable statements. In general, at the top level of a source file you expect declarations (of types, of functions, etc) and then statements will be inside those declarations (the implementations of free f