3 ms·
That is entirely possible. I can tell if someone doesn't know perl or python because they write for loops like a C coder instead of looping over containers. So
by __david__ 16y ago
That is entirely possible. I can tell if someone doesn't know perl or python because they write for loops like a C coder instead of looping over containers. So I can believe that you don't come in contact with that detail very often.
It just bugs me that such an obvious wart exists in an otherwise very clean language.
- stcredzero 16y agoWhere "obvious" = something only someone with a foreign viewpoint thinks about. ("foreign" with regards to programming language.)
- silentbicycle 16y agoThe reason the arrays index from 1 is that Lua is designed to pare down to a data description & configuration language for non-programmers, and they felt that starting arrays from zero would be confusing. I don't like it it either, but in practice it's a minor issue. People who write off Lua because of indexing from 1, Python because of the significant whitespace, Lisp for its pares, etc. probably haven't gotten to the really interesting stuff yet.