[Python-ideas] Simpler syntax for basic iterations
Ben Finney
ben+python at benfinney.id.au
Tue Oct 13 00:21:31 CEST 2015
Luciano Ramalho <luciano at ramalho.org>
writes:
> Andre and I are not arguing for a special syntax to loop over numbers.
> We are arguing for special syntax to repeat a block a number of times.
That's been clear, at least to my reading of your messages.
What you haven't argued is any extraordinary utility of this new syntax,
sufficient to overcome the high barrier that is rightly imposed on new
syntax.
> for 3:
> fd(100)
> lt(120)
Since this is quite clearly expressed in existing Python syntax with::
for __ in range(3):
forward(100)
turn_left(120)
the single use case doesn't IMO argue for benefit sufficient to overcome
the enormous burden of new syntax.
--
\ “I'm not a bad guy! I work hard, and I love my kids. So why |
`\ should I spend half my Sunday hearing about how I'm going to |
_o__) Hell?” —Homer Simpson |
Ben Finney
More information about the Python-ideas
mailing list