Timeline for Should my sequential collection start at index 0 or index 1?
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 12, 2015 at 11:41 | comment | added | Brian Knoblauch | @BlueRaja-DannyPflughoeft One man's bug is another man's feature... | |
Jul 11, 2015 at 14:46 | comment | added | supercat |
@BlueRaja-DannyPflughoeft: While I always thought Option Base was silly, I did like the feature some languages offered of allowing arrays to individually specify arbitrary lower bounds. If one has an array of data by year, for example, beyond able to have an array dimensioned [firstYear..lastYear] can be nicer than having to always access element [thisYear-firstYear] .
|
|
Jul 11, 2015 at 5:36 | comment | added | BlueRaja - Danny Pflughoeft | @BrianKnoblauch: No! That is one of reasons Basic was considered such a bad language - the language should pick an indexing scheme and stick to it, not make programmers cognitively have to deal with both! | |
Jul 10, 2015 at 13:22 | comment | added | Brian Knoblauch | One thing I do occasionally miss about the olden days programming in BASIC is "OPTION BASE"... | |
Jul 10, 2015 at 11:27 | comment | added | Telastyn | @immibis - good point, I had not thought of that. | |
Jul 10, 2015 at 6:02 | comment | added | Criticize SE actions means ban | The exception to this: if you're using a 1-based language. Your code should be consistent with the rest of your code and your language, so 0-based in C#, 1-based in VBA (!) or Lua. Your UI should be whatever humans expect (which is almost always 1-based). | |
Jul 10, 2015 at 5:37 | vote | accept | kdbanman | ||
Jul 10, 2015 at 15:20 | |||||
Jul 10, 2015 at 1:16 | history | answered | Telastyn | CC BY-SA 3.0 |