typed-objects-explainer icon indicating copy to clipboard operation
typed-objects-explainer copied to clipboard

Overloading of []

Open chicoxyzzy opened this issue 9 years ago • 1 comments

There is [] overloading mentioned here. As I understand it, . can't be overloaded because we should have possibility to use object properties, right? [] shouldn't be overloadable as well because properties can be strings.

chicoxyzzy avatar Jan 24 '16 17:01 chicoxyzzy

Also [] shouldn't be overloadable because of new requirements from WebAssembly

chicoxyzzy avatar Nov 06 '18 23:11 chicoxyzzy