#define NULL 0 /* silly thing is, we don't even use this */
About this quote
- What does it mean?
- The macro defines NULL as 0 and jokes that the definition is unnecessary because it's never used.
- In plain terms
- NULL is defined but not used.
- What can you take from it?
- Avoid defining things you never need.
Where it applies
Putting it to work
Questions to consider
- When should you keep unused code?
- How does unused code affect maintenance?
Another view
Sometimes definitions are kept for future compatibility.
More from Larry Wall
double value; /* or your money back! */ short changed; /* so triple your money back! */
Permalink to quote #236 I think I'm happier with that. $rubyometer += 0.3 or so. :-)
Permalink to quote #235 /* And you'll never guess what the dog had */ /* in its mouth... */
Permalink to quote #241
Related quotes
Though I'll admit readability suffers slightly...
Larry WallLarry Wall quote #25 The worst programs are the ones where the programmers doing the original work don't lay a solid foundation, and then they're not involved in the program in the…
Bill GatesBill Gates quote #42 I will, in fact, claim that the difference between a bad programmer and a good one is whether he considers his code or his data structures more important. Bad …
Linus TorvaldsLinus Torvalds quote #49