883
Unused variables (sh.itjust.works)
you are viewing a single comment's thread
view the rest of the comments
[-] Prunebutt@slrpnk.net 9 points 2 months ago

It's probably gonna be optimized out by the compiler. However, linters will mark it for you, since it suggests that you actually wanted to do something with that variable and forgot about it after declaration.

... Or it can be removed to reduce visual noise once it's not necessary anymore after refactoring.

this post was submitted on 21 Apr 2024
883 points (97.9% liked)

Programmer Humor

18271 readers
2100 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 1 year ago
MODERATORS