3 ms·
In a fairly dynamic language, it may be more problematic than in C. I mean in C you know i is an int and will not change. Maybe even know it's not used later on
by viraptor 12y ago
In a fairly dynamic language, it may be more problematic than in C. I mean in C you know i is an int and will not change. Maybe even know it's not used later on, so changing i at all is useless.
I honestly don't know how much magic you can inject into Perl6, but there have to be languages dynamic enough that allow you to override integer increments and make $i=10; ++$i return an array of oranges. Possibly even from another thread while you're iterating.
- petercooper 12y agoIf only I knew how to poke around in V8 some more, I'd be interested to see what V8 would do on a JavaScript equivalent. JavaScript is reasonably dynamic and its performance has skyrocketed in recent years mostly due to jumps in JIT approaches and optimization. Of course, V8 has some of the smartest people in the field working on it and the backing of Google.. :)