arv / ecmascript-object-observe

ECMAScript Object.observe spec
Apache License 2.0
63 stars 6 forks source link

"acceptTypes" and "type" key in records: is "types" right? #14

Open domenic opened 9 years ago

domenic commented 9 years ago

Raised by @allenwb at the January F2F.

arv commented 9 years ago

Allen's concern was that it might be confusing with types (as in number, Array etc).

types is not good because it will make things less clear if we add filtering on property names and other potential features in the future.

These kind of APIs benefit from being overly clear.

domenic commented 9 years ago

Right, I didn't mean "is 'types' the right substitute for 'acceptTypes'?" I meant "is 'types' the right word to use when describing this type of thing?"

The only alternatives I remember being mentioned in the meeting were "kind" and "action".