io@piefed.blahaj.zone to Programmer Humor@programming.devEnglish · 2 days agowith a break statement right?piefed.cdn.blahaj.zoneexternal-linkmessage-square40fedilinkarrow-up1590arrow-down115file-text
arrow-up1575arrow-down1external-linkwith a break statement right?piefed.cdn.blahaj.zoneio@piefed.blahaj.zone to Programmer Humor@programming.devEnglish · 2 days agomessage-square40fedilinkfile-text
minus-squareBuddahriffic@lemmy.worldlinkfedilinkarrow-up2·22 hours agoOne has a function that takes the next node as an argument, another just sets that up in a loop. Personally, I found the loop one a bit easier to visualize and debug via stepping through code, though admittedly the difference isn’t huge.
One has a function that takes the next node as an argument, another just sets that up in a loop. Personally, I found the loop one a bit easier to visualize and debug via stepping through code, though admittedly the difference isn’t huge.