From: Thomas 'PointedEars' Lahn on 2 Jan 2010 22:24 Osmo Saarikumpu wrote: > David Mark kirjoitti: >> But - for example - is this:- >> >> for (var i = 0; i < a.length; i++) >> >> ....really harder to read than:- >> >> for (var i = 0, l = a.length; i < l; i++) > > Actually, it was. Confused the l for a 1 for a second there. That is why I use `len' and the like instead. PointedEars -- Prototype.js was written by people who don't know javascript for people who don't know javascript. People who don't know javascript are not the best source of advice on designing systems that use javascript. -- Richard Cornford, cljs, <f806at$ail$1$8300dec7(a)news.demon.co.uk> |