510
you are viewing a single comment's thread
view the rest of the comments
[-] darvit@lemmy.darvit.nl 2 points 1 year ago

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.

this post was submitted on 03 Oct 2025
510 points (98.7% liked)

Programmer Humor

33615 readers
2176 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS