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
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
Hi,
I am trying to understand the Swift AST by looking at output produced from
swiftc -dump-ast .
Most of it makes sense to me, but there are some things that I don’t
understand. For example, consider
the following code:
var x = 42
This produces the following output:
(source_file
(top_level