Fun with Swift
><i>Which to my mind is horrendous. The closure f does not capture the value of i at the time when f is defined, changing i after f was defined make nonsense of the idea of a closure.</i><p>Of course it should change i after the closure was defined, since the closure doesn't copy but refer to that i.<p>Looks like a fully proper closure.<p>Which language does this differently?