Once when I was reading some python docs I came across a reference to an article that explained why programming languages with 0-based indexing should always exclude the last element during operations like slicing:
>> a = [1, 2, 3]
>> a[0:1]
[1] #and not [1,2]
Unfortunately I did not bookmark it. Does anyone know which article I am talking about?
PS: I welcome any explanations of why this is for my immediate satisfaction 🙂
Could it be this note from E. W. Dijkstra?