Indent testers needed (Prothon)
Josiah Carlson
jcarlson at uci.edu
Sat Apr 3 03:18:04 EST 2004
>>/* loop 2 */
>>ix = 2
>>for
>> item
>> in
>> blist
>> :
>> alist[ix] =
>> alist[
>> ix
>> ]
>
>
> Do you think this is a good thing or a bad thing? You could do the same
> thing or worse in C or Java.
It is a bad thing. Just because you could do worse in a language that
is indentation agnostic, doesn't mean that you shouldn't discourage (if
not disallow) such behavior in a language that is bases scope on
indentation.
The above code shows how you can make Prothon code extraordinarily ugly
by exploting the continuation rules. Certainly most people don't see
such ugly continuations in Python, but I think rule #3 is begging for
trouble.
- Josiah
More information about the Python-list
mailing list