Re:What Lua scripting means for Wikimedia and open source
by bsg75 on Monday March 18, 2013 @02:37PM
(#5396222)
The Lua index from 1 complaint is becoming the new Python whitespace gripe.
[ Parent
| on HN ]
Re:What Lua scripting means for Wikimedia and open source
by pjscott on Monday March 18, 2013 @05:08PM
(#5397141)
And just like the Python whitespace thing, in practice it doesn't seem to be a problem after the first day or so. You get used to it quickly.
Re:What Lua scripting means for Wikimedia and open source
by gngeal on Monday March 18, 2013 @06:17PM
(#5397539)
Not if your brain is used to doing modular arithmetics since childhood. :/ Python whitespace and Lisp parens seem trite in comparison to that. I just get 1-based indices more often wrong that I get 0-based indices wrong.
(When doing things like "given an interval of indices a-to-b, partition it into n subintervals so that every element of the original interval is in precisely one of the sub-intervals, and the lengths of the intervals are either the same or as close to each other as possible", I find the "count from one, bounds are inclusive" model horrible. How do you express an interval from a with the length of zero? It's just <a,a) with half-open intervals. What, <a, a-1>? So many special cases with the <a, b> model...)