jackpot@lemmy.ml to Programming@programming.dev · 10 months agowhen is it best to use a recursive function vs a for loopmessage-squaremessage-square31fedilinkarrow-up132
arrow-up130message-squarewhen is it best to use a recursive function vs a for loopjackpot@lemmy.ml to Programming@programming.dev · 10 months agomessage-square31fedilink
minus-squarelivingcoder@programming.devlinkfedilinkarrow-up2·10 months agoI would agree. Only if the performance is extremely similar but the readability (for some reason) is significantly better for the recursive solution would I choose that.
I would agree. Only if the performance is extremely similar but the readability (for some reason) is significantly better for the recursive solution would I choose that.