@mrtino Technically speaking, there are no arrays in C though... 🤔
Well, the language does implement arrays, but... its in fact a pointer to a memory address in the heap... In other words, arrays in C do not start at 0, but at their specific address... Same in C++ If I recall correctly...
So... while in other languages with protected types it might start at 0 or 1, in C/C++ they would trully start at 0x1fffecd or whatever.
You can still use indexes though... but these are just multipliers.
@mrtino Tu peux me dire comment tu fais un tableau en Perl qui commence pas par zéro ?
@mrtino Disons que je veux bien te croire, mais je ne vois pas comment on fait (et du coup j'ai de gros doutes ^^).
@mrtino Je crois que le Visual Basic permet de faire des tableaux qui ne commencent pas de zéro. Enfin, la doc dit que ça commence de zéro, mais il y a une fonction LBound  qui donne le premier index… ça serait bizarre de faire une fonction pour toujours renvoyer zéro.
[also haskell should be in row 3, if we're talking about the arrays from the `array` package, which apart from having any start index can also be indexed by like, ranges of chars, or pairs, or your own datatypes]
@stolas I imagine similarly to Pascal
int_array = array [5..10] of integer
@thfr @mrtino @AFresh1 hey, $[ has been discouraged since perl5 came out, became a noop in 5.16, and will become fatal in 5.30, the next release - https://metacpan.org/pod/distribution/perl/pod/perlvar.pod#$[
@mrtino actually in Star Wars 1, 2, and 3 are never found in arrays, it’s like they don’t even exist
@mrtino Arrays can start wherever?
That sounds like it would either be really useful, really frustrating, or both, based on my extremely limited knowledge of programming
@mrtino Haskell should have been in the "arrays can start wherever" group. Haskell array indexes don't even have to be numbers…
@mrtino this is absolutely perfect xD
@mrtino For those times your arrays have a Holiday Special?
@mrtino what about basic
Generalistic and moderated instance. All opinions are welcome, but hate speeches are prohibited. Users who don't respect rules will be silenced or suspended, depending on the violation severity.