Skip to content

Editorial: don't overload [[Get]] / [[Set]] as an internal method name and internal slot name #2276

@marjakh

Description

@marjakh

[[Get]] is used as a internal method name and also an internal slot name in property descriptors.

This type of "overloading" is unfortunate: When searching for the [[Get]] method of something specific, it's unnecessary churn to go through the occurrences of [[Get]] as an internal slot name.

Suggestion 1: Rename [[Get]] and [[Set]] in property descriptors to [[Getter]] and [[Setter]].

Suggestion 2: Add a disambiguation table of things which have a [[Get]] internal method (+ links to them) and make [[Get]] everywhere link to it. (Currently [[Get]] doesn't link to anything.)

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