This came up in #55 (comment)
Whether this is possible and provides two distinct members affects a number of API decisions (e.g. #47, #55) and we should resolve on it ASAP:
protocol P {
foo () { /* elided */ }
["foo"]() { /* elided */ }
}
What about this?
protocol P {
foo () { /* elided */ }
[P.foo]() { /* elided */ }
}
cc @michaelficarra @ljharb
This came up in #55 (comment)
Whether this is possible and provides two distinct members affects a number of API decisions (e.g. #47, #55) and we should resolve on it ASAP:
What about this?
cc @michaelficarra @ljharb