Skip to content

Inconsistent named arguments #1704

@dennisqi

Description

@dennisqi

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions