Swift for in loop with parentheses
<p>I normally use the for in loop in swift without parentheses, but today I put them on just for kicks thinking they were just optional and it did not worked as expected.</p>

<p>This code works:</p>

<pre><code>if let tasks = getAllTasksWithManagedObjectContext(appDelegate.managedObjectContext){
    for task in tasks{
        appDelegate.managedObjectContext.deleteObject(task)
    }
}
</code></pre>

<p>This one does not:</p>

<pre><code>if let tasks = getAllTasksWithManagedObjectContext(appDelegate.managedObjectContext){
    for (task in tasks){
        appDelegate.managedObjectContext.deleteObject(task)
    }
}
</code></pre>

<p>I get this errors:
<a href="https://i.stack.imgur.com/ADTvo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ADTvo.png" alt="enter image description here"></a>
Whats going on here?</p>