mastermind@lemm.ee to Programmer Humor@lemmy.ml · 1 年前why not a,b or x,y?lemm.eeimagemessage-square61fedilinkarrow-up1235arrow-down116
arrow-up1219arrow-down1imagewhy not a,b or x,y?lemm.eemastermind@lemm.ee to Programmer Humor@lemmy.ml · 1 年前message-square61fedilink
minus-squareatimholt@lemmy.worldlinkfedilinkarrow-up1·1 年前I like range-based for loops. You can just name the iterator after the object that it actually is. Have to be a little careful though, if the container is named a plural noun, and the natural name is the same word minus the easy-to-miss ‘s’.
I like range-based for loops. You can just name the iterator after the object that it actually is. Have to be a little careful though, if the container is named a plural noun, and the natural name is the same word minus the easy-to-miss ‘s’.