
On 01/27/2016 05:06 PM, Steven D'Aprano wrote:
On Wed, Jan 27, 2016 at 12:49:12PM -0800, Andrew Barnert wrote:
This reads weird to me. I think it's because I've been spending too much time in Swift, but I also think Swift may have gotten things right here, so that's not totally irrelevant.
It reads weird to me too, because "for let x in ..." is just weird. It's uncanny valley for English grammar: at first glance it looks like valid grammar, but it's not.
As I've mentioned before, both C# and Ruby made breaking changes from the Python behavior to the Swift behavior, because they couldn't find any legitimate code that would be broken by that change.
I'm not sure if you intended this or not, but that sounds like "they found plenty of code that would break, but decided it wasn't legitimate so they didn't care".
Or, "they found code that would break, because it was already broken but nobody had noticed yet." -- ~Ethan~