If you want your program to be readable, consider supplying the argument.
About this quote
- What does it mean?
- Providing the argument makes code more readable.
- In plain terms
- Explicit arguments aid understanding.
- What can you take from it?
- Always supply arguments for clarity.
Where it applies
Putting it to work
Questions to consider
- When is omitting an argument acceptable?
- How do you document optional parameters?
Another view
Sometimes arguments are optional and can be omitted for brevity.
More from Larry Wall
Help save the world!
Permalink to quote #268 In general, they do what you want, unless you want consistency.
Permalink to quote #270 Even if you aren't in doubt, consider the mental welfare of the person who has to maintain the code after you, and who will probably put parens in the wrong pl…
Permalink to quote #267
Related quotes
We toast the Lisp programmer who pens his thoughts within nests of parentheses.
Alan PerlisAlan Perlis quote #2 I'm sure that that could be indented more readably, but I'm scared of the awk parser.
Larry WallLarry Wall quote #11 Though I'll admit readability suffers slightly...
Larry WallLarry Wall quote #25