2 ms·
can you give an example please? i can't imagine how any section of code would be affected by removing an unused variable. if the code reference the variable, it
by em-bee 2y ago
can you give an example please? i can't imagine how any section of code would be affected by removing an unused variable. if the code reference the variable, it would be used. if it doesn't, then why would you have to delete it?
- xigoi 2y agoIn pseudocode: a = input() b = f(a) c = g(b) d = h(c) If you delete the unused variable d, then c will be unused, so you’ll have to delete it too. Iterating this, you will end up deleting the entire code.