Re: [JSMentors] Re: outsmarting the compiler?

2010-12-22 Thread Poetro
2010/12/22 YANG Xudong wyver...@gmail.com Fair point. Just to make my opinion clearer: all these conclusions are based on the assumption that compilers have become sufficiently smart, to the point where humans should care more about code readability/reusability/maintainability/etc. instead

Re: [JSMentors] Re: outsmarting the compiler?

2010-12-22 Thread Peter van der Zee
On Wed, Dec 22, 2010 at 7:46 AM, YANG Xudong wyver...@gmail.com wrote: On Tue, Dec 21, 2010 at 20:54, jemptymethod jemptymet...@gmail.com wrote: What is out-smarting the compiler, really? I often get criticized for the following style of for loop: for (var i=0, n=arr.length; in; i++)