Skip to content
quotesby

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

  • API design
  • function calls

Putting it to work

  • use named parameters
  • document defaults

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

  1. Help save the world!

    Permalink to quote #268
  2. In general, they do what you want, unless you want consistency.

    Permalink to quote #270
  3. 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

  1. We toast the Lisp programmer who pens his thoughts within nests of parentheses.

    Alan PerlisAlan Perlis quote #2
  2. I'm sure that that could be indented more readably, but I'm scared of the awk parser.

    Larry WallLarry Wall quote #11
  3. Though I'll admit readability suffers slightly...

    Larry WallLarry Wall quote #25