-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is an intrinsic? #1540
Comments
Perhaps it'd be good to first step back, and determine what normative impact any definition of "intrinsic" would have? |
Oh, probably no impact that anyone would pay attention to. |
see related discussion WRT a PR to the Who We Work repository |
That link is a 404 for me. (I guess it's a private repo.) |
It is. |
So could someone with access to that repo summarize (without violating whatever's private about it) how that PR relates to or informs this issue? (Or should I pretend it wasn't mentioned?) |
I'll just repost my own last contributions without quotations or names of other people:
|
Nothing particularly "private" there, it's just happened to be an issue attached to the private "How we work" repository. Here is the essence of my part of the conversation (the preceded Mark's quote):
|
The spec doesn't really define the term "intrinsic".
It does define "well-known intrinsic":
which suggests that "intrinsic" simply means "built-in object".
Alternatively, one could reasonably infer that an intrinsic is any object created by the CreateIntrinsics operation. I believe that all such objects are built-in objects, but the converse is not quite true. That is, the set of objects created by CreateIntrinsics is a subset of the built-in objects (for a given realm). For example, each invocation of MakeArgGetter creates a built-in function object, and that happens outside of CreateIntrinsics.
So: is a function created by MakeArgGetter an intrinsic? My guess is that it isn't, i.e. that the latter inference is the correct one. Not a big deal, but it would be nice to know.
While I'm in the neighborhood, 6.1.7.4 Well-Known Intrinsic Objects says:
I'm dubious about the "usually" and "Unless otherwise specified". Are there any (well-known) intrinsic objects that aren't tied to a specific realm? CreateIntrinsics doesn't seem to think so.
The text was updated successfully, but these errors were encountered: