Hi,

Am 04.03.2009 um 14:06 schrieb Mibu:

On Mar 4, 2:46 pm, Michael Wood <esiot...@gmail.com> wrote:
On Wed, Mar 4, 2009 at 2:07 PM, Mibu <mibu.cloj...@gmail.com> wrote:
Why does range in Clojure use an inclusive-exclusive range?
For what it's worth, Python's range function works the same way.

I think Clojure's design leans towards what's right more than what's
custom even if it breaks old habits, so I am curious why wasn't this
bad habit broken as well. Is it just convention, bad as it is? Or
maybe I'm missing some hidden good reason for using this confusing (to
me) range over an inclusive range.

Edsger Dijkstra wrote up his opinion, why it should be like that:

http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html

Sincerely
Meikel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to