I'm still learning, but I think its just the distinction between introducing
the name and performing the name binding. Consider this example,
let (x, y) = (1, 2)
This parses into one PatternBindingDecl and two VarDecls.
Slava
> On Dec 18, 2015, at 8:08 AM, Lee M via swift-dev wrote:
>
> With
With the code: var foo = true, swift parses this into the following AST:
(pattern_binding_decl
(pattern_named 'foo')
(boolean_literal_expr type='' value=true))
(var_decl "foo" type='' storage_kind=stored)))
I'm wondering why VarDecl and PatternBindingDecl are separate nodes in the
tree an