Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^5: For vs. Foreach

by ikegami (Pope)
on Feb 14, 2009 at 03:19 UTC ( #743759=note: print w/replies, xml ) Need Help??

in reply to Re^4: For vs. Foreach
in thread For vs. Foreach

I think your false distinction of "counting loop" as separate is just that. False.

It's not my false distinction, like I explained. It's a need of myriads of programmers I support here. If it helps, why should I say "you're all wrong!".

And then you'd also have to break out a slice too.

What kind of logic is that? As far as I can tell, that isn't optimised, it holds no special significance to anyone, and there's stylistic advantage for the distinction. There's nothing special about array slices in a loop.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://743759]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2020-12-04 11:34 GMT
Find Nodes?
    Voting Booth?
    How often do you use taint mode?

    Results (58 votes). Check out past polls.