this post was submitted on 30 Sep 2023
374 points (90.1% liked)

Programmer Humor

32412 readers
676 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] HairHeel@programming.dev 31 points 1 year ago (1 children)

Value watching is just printf; change my mind

[โ€“] leo85811nardo@lemmy.world 7 points 1 year ago

Ackchyually, value watching in debugger almost guarantee to get the value by address, but printf in some languages can pass by value, unnecessarily make copy of the watched variable, and the value printed is the copied data instead of the original