Skip to content
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

Abstract types for alien objects #1099

Open
slindley opened this issue Feb 10, 2022 · 1 comment · May be fixed by #1198
Open

Abstract types for alien objects #1099

slindley opened this issue Feb 10, 2022 · 1 comment · May be fixed by #1198
Assignees

Comments

@slindley
Copy link
Contributor

It is frequent when interfacing with JavaScript code to need to handle objects that do not have a Links type. They pass through Links via some alien JavaScript API, but Links code cannot itself inspect such opaque objects. Currently we can pretend that alien objects have some Links type, and we can ensure that Links code doesn't try to inspect them by choosing an uninhabited type such as [||]. It would be cleaner to be able to explicitly declare an abstract type to represent a particular kind of alien object. At the very least, we could build in one specific AnyJS abstract type for opaque alien JavaScript objects.

@dhil dhil self-assigned this Feb 10, 2022
@slindley
Copy link
Contributor Author

Related to #1016.

@dhil dhil linked a pull request Jul 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants