The alternative builtin needed a better name.

This commit is contained in:
Raymond Hettinger 2003-10-28 21:21:31 +00:00
parent 6f412ebc5e
commit e680cb67de
1 changed files with 6 additions and 5 deletions

View File

@ -156,11 +156,12 @@ library and comments on why reverse iteration was necessary:
Active Alternative
==================
A simpler, but limited alternative is to create a builtin called
reverse_range() that takes the same arguments as range() but returns a
reverse iterator over the range. The idea is that much of the benefit
of inreverse() comes reducing the intellectual effort it takes to
express the arguments for [x]range() when going backwards.
A simpler, but limited alternative is to create a builtin that takes
the same arguments as range() but returns a reverse iterator over the
range. The idea is that much of the benefit of inreverse() comes
reducing the intellectual effort it takes to express the arguments for
[x]range() when going backwards. A good name is needed for this
alternative -- revrange() is cleanest so far.
Rejected Alternative