On this page http://www.raywenderlich.com/85578/first-core-data-app-using-swift, many of the examples use let instead of var.
func tableView(tableView: UITableView,
cellForRowAtIndexPath
indexPath: NSIndexPath) -> UITableViewCell {
let cell =
tableView.dequeueReusableCellWithIdentifier("Cell")
as UITableViewCell
let person = people[indexPath.row]
cell.textLabel!.text = person.valueForKey("name") as String?
return cell
}
I see this in lots of tutorials. Is there some reason to use let in the above snippet over var?