ecmascript-object-observe icon indicating copy to clipboard operation
ecmascript-object-observe copied to clipboard

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

Open domenic opened this issue 10 years ago • 2 comments

Raised by @allenwb at the January F2F.

domenic avatar Jan 29 '15 19:01 domenic

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.

arv avatar Jan 29 '15 23:01 arv

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".

domenic avatar Jan 30 '15 00:01 domenic