|
|
|
|
|
by gizmo686
1996 days ago
|
|
Certainly negative indexes being out-of-bounds would be the most consistent behaviour, but that requires giving up the index-from-end functionality (or, at least giving up up with the defualt array access syntax). If you are going to have negative indexing, there isn't really a better alternative than 1 based indexes; since you can't exactly do arr[-0] |
|