News for hackers. Stuff that matters.
Re:Ruby vs. Python comes down to the for loop (2021) by Joker_vD on Monday April 22, 2024 @07:25AM (#40113266)
And mind you, C's for loop was an innovation: languages before it (and even after) used "FOR var := start_expr [DOWN]TO end_expr [BY constant] DO ... OD" or variations thereof, with constant increment which allowed for much better codegen in a single-pass compiler: it's trivial to remember the increment constant and then issue it later, at the loop's end while remembering a whole expression... not so much.

There are no comments on this comment yet.