Skip to content

Commit

Permalink
Update docs: refining use of word "parameter" vs "argument"
Browse files Browse the repository at this point in the history
  • Loading branch information
ozenzin authored Dec 27, 2024
1 parent d9ebf0c commit c3dce04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _style/naming-conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,10 @@ going beyond a few lines. Few local names are used (including
parameters), and so there is no need to contrive long, descriptive
names. This convention substantially improves the brevity of most Scala
sources. This in turn improves readability, as most expressions fit in
one line and the arguments to methods have descriptive type names.
one line and the parameters for methods have descriptive type names.

This convention only applies to parameters of very simple methods (and
local fields for very simply classes); everything in the public
interface should be descriptive. Also note that the names of arguments
interface should be descriptive. Also note that the names of parameters
are now part of the public API of a class, since users can use named
parameters in method calls.

0 comments on commit c3dce04

Please sign in to comment.