On Mon, Oct 12, 2015 at 11:40 AM, Josh Ayers wrote:
> When the step size is a variable, the range statement falls back to a
> Python for loop since the direction of the loop is unknown. The "i from
> a <= i < b by c" syntax specifies the direction, so it is turned into a
> C for loop. The differ
When the step size is a variable, the range statement falls back to a
Python for loop since the direction of the loop is unknown. The "i from
a <= i < b by c" syntax specifies the direction, so it is turned into a
C for loop. The difference is performance could be substantial.
This produces a Py
On Sun, Oct 11, 2015 at 3:31 PM, Greg Ewing wrote:
> Stefan Behnel wrote:
>>
>> Hi!
>>
>> The syntax construct "for i from 0 <= i < 10" has been silently outdated
>> for years. Can we start issuing a warning that normal range() loops are
>> preferred?
>
>
> I'd be in favour of replacing it with ju
On 2015-10-12 04:57, Kevin Norris wrote:
IMHO, either it should be un-deprecated in the documentation[1], or
the compiler should start issuing warnings and eventually errors. You
can't have it both ways. Either it's deprecated or it isn't.
+1
___
c