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
- ??
Part of the committee feedback was that
implementsconflicts with TS. Opening this issue to brainstorm potential alternative names. Note that whatever word we use should be consistent between:class C implements P)requires foo implements Q)obj implements P)Protocol.implement(obj, P)One idea is
use, which is both self-explanatory and shorter:class C uses Prequires foo uses Qobj uses PProtocol.use(obj, P)Other ideas:
with(but may conflict with existingwith() {}block