949
Variable Declaration (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] CrypticCoffee@lemmy.ml 2 points 1 year ago
[-] Luvon@beehaw.org 10 points 1 year ago

It’s more language dependent than ide. Go for instance makes unused variables a compiler error (I believe) which means ides mark it as red immediately.

Ts/js can have eslint rules against unused variables but they will still usually compile or just run directly anyway.

Java doesnt error but can be set to warn you on them.

Abap doesn’t care and won’t tell you.

Your mileage will vary.

[-] qaz@lemmy.world 2 points 1 year ago

I've seen it with multiple IDE's

this post was submitted on 27 Mar 2024
949 points (98.2% liked)

Programmer Humor

25328 readers
1035 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 2 years ago
MODERATORS