this post was submitted on 16 Jul 2023
1669 points (96.6% liked)

Memes

45731 readers
1102 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 1 year ago (1 children)

Oh yeah, I meant generally. Isn't it most common if not best practice to say for (i = 0; i < whatever; i++)?

[โ€“] [email protected] 2 points 1 year ago

Fair. I guess to accommodate zero-indexing so that it still happens whatever times, not whatever + 1 times.