Skip to content

Alternatives to implements? #90

@LeaVerou

Description

@LeaVerou

Part of the committee feedback was that implements conflicts with TS. Opening this issue to brainstorm potential alternative names. Note that whatever word we use should be consistent between:

  • Class head (class C implements P)
  • Sub-protocols (requires foo implements Q)
  • Operator (obj implements P)
  • Imperative method Protocol.implement(obj, P)

One idea is use, which is both self-explanatory and shorter:

  • class C uses P
  • requires foo uses Q
  • obj uses P
  • Protocol.use(obj, P)

Other ideas:

  • with (but may conflict with existing with() {} block
  • ??

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