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

Allow compiler to accept a list of primitives that will be provided at run time #101

Open
qiemem opened this issue Jul 17, 2014 · 1 comment
Assignees

Comments

@qiemem
Copy link
Member

qiemem commented Jul 17, 2014

It should treat invocations of those primitives as javascript calls. This gives a super easy but flexible way of doing extensions.

It should take type information with the list of primitives so that it can still do type checking.

@qiemem qiemem self-assigned this Jul 17, 2014
@SethTisue
Copy link
Contributor

And/or, there could be a variadic __js primitive whose first argument is a string evaluating to a JavaScript function with the remaining arguments passed to it, so you could do e.g. (__js "console.log" "hello") or whatever. All type safety goes out the window, of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants