-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
In section Class I found we have a named argument:
val point2 = new Point(y=2)
However in section Named Arguments and Default Parameter Values we have:
printName(first = "John", last = "Smith") // Prints "John Smith"
and
val point1 = new Point(y = 1)
I suppose the val point2 = new Point(y=2) is the convention (no space between the argument and the value). It would be great if we can make it consistent.