Details
Description
The current progress in the generators front required deoptimizing the handling of "for item in array" constructs.
for item in array:
pass
should expand to:
i = 0
while i < len(array):
item = array[i]
++i
instead of today's:
iterator = array.GetEnumerator()
while iterator.MoveNext():
item = iterator.Current
Issue Links
- is related to
-
BOO-484
For loop similar to Basic's for <var> = <start> to <end> [step <step>]:
-
for index in range(0, 10):
pass
should expand to jump statements that would generate
for (int index = 0; index < 10, index++)
{
}