Skip to content

C-CTOR: incorrect usage of term "method" #274

@jnuss

Description

@jnuss

The C-CTOR guideline states:

Constructors are static, inherent methods (C-CCTOR)
...
Constructors are static (no self) inherent methods for the type that they construct...

However, this is a contradiction since a "method" is described in the reference like so:

"Associated functions whose first parameter is named self are called methods..."

The API guidelines should use consistent terminology as the reference. It is proposed that the incorrect "method" terminology be replaced with the correct "associated function" terminology.

In summary, an idiomatic new() constructor is definitely not called a method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions