jasnell / proposal-istypes

TC-39 Proposal for additional is{Type} APIs
201 stars 7 forks source link

Bikeshed the name? #26

Open ljharb opened 7 years ago

ljharb commented 7 years ago

With the latest refactor of the proposal (which is awesome!) I don't think the name "Builtin" is appropriate, primarily because it's extensible by design.

What might be a more appropriate name?

jasnell commented 7 years ago

Intrinsic?

Another question would be: is a new top level object required here at all? One could easily imagine dropping these off Object. e.g. Object.isBuiltin() / Object.typeof() (or Object.isIntrinsic()/Object.typeof())

ljharb commented 7 years ago

"Intrinsic" is good, but also doesn't cover the extensibility.

I think it'd be great to avoid a top-level namespace, but I'm both not sure Object is the best place, and also can't think of a better one.

jasnell commented 7 years ago

Let's stick with Builtins for now and see if anyone from the committee can come up with a better one.

bathos commented 7 years ago

Just an idea: if Reflect is about reflection functionality, might introspection functionality belong to Introspect?