Re:Worst Bug Ever
by carlob on Monday January 21, 2013 @10:51AM
(#5091956)
I'm baffled by the fact that the single most common name for an integer variable has a special meaning (though it's not a reserved word). I'm pretty sure this is a bug in MatLab, not in OP's code.
But still I was wondering: isn't that code horribly un-idiomatic for an array based programming language?
Re:Worst Bug Ever
by jarek on Monday January 21, 2013 @02:18PM
(#5093161)
I'd bet i has been used to denote the imaginary unit long before it was used as a loop counter in programming languages. Wikipedia appears to date the former to sometime in the 18th century.
But still I was wondering: isn't that code horribly un-idiomatic for an array based programming language?