3 ms·
It's worse in Erlang: "Mainly, Regex and Binary indexes are zero-based, List and Tuple are one-based." I don't remember now but one of the collections in stdl
by klibertp 14y ago
It's worse in Erlang:
"Mainly, Regex and Binary indexes are zero-based, List and Tuple are one-based."
I don't remember now but one of the collections in stdlib is zero-based too. It's much worse to be inconsistent than to choose 0 or 1-based indexes for everything.
- davidw 14y ago> one of the collections in stdlib is zero-based too. Yep, array: http://www.erlang.org/doc/man/array.html http://www.erlang.org/doc/man/array.html It's definitely a mess.