Re:Lua, a Misunderstood Language
by kwhitefoot on Saturday January 16, 2021 @05:16AM
(#25801340)
Why do so many languages restrict arrays to 0 or 1 based indexing? I much prefer the way it is done in Basic where you can choose what you like for each array or even better Pascal where you can use any ordinal type (including boolean) as the index and you can define subtypes of the ordinal types to use as index types.
[ Parent
| on HN ]
There are no comments on this comment yet.