minus-squaredarvit@lemmy.darvit.nltoProgrammer Humor@programming.dev•Madness or brilliancelinkfedilinkarrow-up2·2 days agoBe careful, the actual logging can happen at a later time, and because the log function may take a reference to the value, if you modify r it may show the modified version of r in the logging instead of the original r. linkfedilink
Be careful, the actual logging can happen at a later time, and because the log function may take a reference to the value, if you modify r it may show the modified version of r in the logging instead of the original r.