3 ms·
> In CS "garbage" has a bit different sounding, like in "garbage collector". It's a bit disingenuous to suggest that Torvalds meant it in that sense, though.
by kelnos 7y ago
> In CS "garbage" has a bit different sounding, like in "garbage collector".
It's a bit disingenuous to suggest that Torvalds meant it in that sense, though. He very obviously meant it in the sense of a piece of trash that should be thrown into a trash bin.
- SergeAx 7y agoOr a piece of code that doesn't do anything useful or meaningful and may be skipped by compiler as well.
- loopz 7y agoCompiler warning: Sourcecode classified as "garbage". Replaced with NOP for user protection.
- clarry 7y agoGarbage code sounds like a fine new class of undefined behavior to add to the next C standard. You just need to teach ubsan to understand it.
- kelnos 7y agoNo, he very clearly meant the definition I suggested. (Also I've never heard of dead code referred to as "garbage code".)