Skip to content

Commit 11744de

Browse files
authoredMar 16, 2025
Remove incorrect reference to "Java parameter name length"
There is no practice in the Java community or "ecosystem" that would discourage short parameter names. On the contrary even the Java standard libraries often use single letter variable names when the purpose of the parameter is evident from the context. So I have removed the statement as it is simply incorrect.
1 parent 5bd546e commit 11744de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎_style/naming-conventions.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,7 @@ for local names to be very short:
356356

357357
def add(a: Int, b: Int) = a + b
358358

359-
This would be bad practice in languages like Java, but it is *good*
360-
practice in Scala. This convention works because properly-written Scala
359+
This convention works because properly-written Scala
361360
methods are quite short, only spanning a single expression and rarely
362361
going beyond a few lines. Few local names are used (including
363362
parameters), and so there is no need to contrive long, descriptive

0 commit comments

Comments
 (0)
Failed to load comments.