4 ms·
> 2. Doesn't make the mistake of 1-based indexing. Why is this a mistake? I've used 0-based languages primarily, but ergonomically, 1-based languages like Awk
by _zagj 2y ago
> 2. Doesn't make the mistake of 1-based indexing.
Why is this a mistake? I've used 0-based languages primarily, but ergonomically, 1-based languages like Awk and Smalltalk are fine too, making some code slightly harder to write and other code slightly easier. Overall, I've found it to be a wash. If anything, in a pointer-less language, pedagogically, 1-based is more intuitive for novices.
P.S. Classic VB and VBA had an odd feature where one could choose the base for themselves, using the Option Base feature.
- _zagj 2y agoIt's interesting that merely asking someone to explain their justifications for something, without even outright criticizing it or Rust itself, is enough to net downvotes in Rust threads.