|
|
|
|
|
by pmontra
1091 days ago
|
|
This was a point about 10 years ago, then history settled the matter and people are using Python or not using it mostly because of what they have to do than because of syntax. I do have a customer using Python. We had our share of bugs introduced by wrong cut and paste or manual git conflict resolutions after merges for code like for x in a_list:
if cond():
do()
else:
other()
something()
That latter something() was actually outside the loop but got inside and tests didn't caught the error. There is the variant where something() should be inside the loop but got moved outside. |
|