> Having more that one variable with the same name in one method is stupid and 
> the language should prevent that at least. 

Actually, we're doing it all the time:

if let foo = foo {
  ...
}

var foo = foo

You can do this in a subscope, you can do this to the arguments, and you can do 
this to fields.

A.

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to