@mastermind to Programmer Humor@lemmy.ml • 11 months agowhy not a,b or x,y?imagemessage-square96arrow-up1675arrow-down143
arrow-up1632arrow-down1imagewhy not a,b or x,y?@mastermind to Programmer Humor@lemmy.ml • 11 months agomessage-square96
minus-square@csm10495@sh.itjust.workslinkfedilink7•11 months agoIf you use I,j,k… what do you do if you need another? I hate seeing lowercase l as a var.
minus-squarehh93link11•11 months agoIf i is lowercase too then it doesn’t make a difference But tbh if your function is having mit than 3 levels of nested loops you should probably rethink that function
minus-square@fangleone2526@lemmy.fmhy.mllinkfedilinkEnglish4•11 months agoWouldn’t that be x y z or something similar then though ? You wouldn’t even think to use i j k for that
minus-square@csm10495@sh.itjust.workslinkfedilink1•11 months agoThis is the answer my college professors would have said. Lol
If you use I,j,k… what do you do if you need another? I hate seeing lowercase l as a var.
If i is lowercase too then it doesn’t make a difference
But tbh if your function is having mit than 3 levels of nested loops you should probably rethink that function
… or you just work in 3D …
Wouldn’t that be x y z or something similar then though ? You wouldn’t even think to use i j k for that
This is the answer my college professors would have said. Lol