News for hackers. Stuff that matters.
Re:Computer History Museum 2018 Fellow: Guido van Rossum by pmontra on Sunday March 04, 2018 @02:47PM (#16516259)
IMHO (1..10) is much more explicit than range(10). No questions about what it is. Where does range(10) starts from? -infinity, 0, 1? Or where does it ends at? Is 10 the starting point? Probably not but who knows. One should read the manual for that. BTW I hate Ruby's three dots (1...10) because it's (1..9) and I never remember which one is what when I find it in somebody's else code. Languages should not trick developers into mistakes. I only write the two dots.

However:

1) if one comes from Ruby, then Python is a Ruby designed by someone with a weird mind

2) if one comes from Python, then Ruby is a Python designed by someone with a weird mind

I'm coming from Ruby, a historical accident I can't change. No hard feelings.

There are no comments on this comment yet.