629
submitted 2 years ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 6 points 2 years ago

I think it's a convention taken from math notation conventions.

[-] [email protected] 7 points 2 years ago

I is short for "index" for a traditional for loop for mapping over an array and looking up by index. J comes after I and is used for nested loops so it doesn't shadow the outer I.

[-] [email protected] 0 points 2 years ago

Is it for “index” or “iterator”?

load more comments (3 replies)
load more comments (3 replies)
this post was submitted on 09 Jul 2023
629 points (94.0% liked)

Programmer Humor

37070 readers
25 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS