@[email protected] to Programmer [email protected] • 1 year agoAaargh....my eyes......my eyes......lemmy.worldimagemessage-square97fedilinkarrow-up1623
arrow-up1623imageAaargh....my eyes......my eyes......lemmy.world@[email protected] to Programmer [email protected] • 1 year agomessage-square97fedilink
minus-square@[email protected]linkfedilinkEnglish27•1 year agoCmon now its illegal to use them anywhere other than iterators
minus-square@[email protected]linkfedilink2•1 year agon is genrally the max though. “From i=0 to n” is used in math all the time.
minus-square@[email protected]linkfedilink1•1 year agoWhich is fine, only it might confuse whoever then has to maintain your code.
Amateur! Ints should be called i, j or k.
Cmon now its illegal to use them anywhere other than iterators
This is the way
I sometimes use
n
as my loop variable (⌐■_■)n is genrally the max though. “From i=0 to n” is used in math all the time.
Not in my code
Which is fine, only it might confuse whoever then has to maintain your code.