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 functions to have vague data types. #74

Open
drwhut opened this issue Mar 8, 2020 · 0 comments
Open

Allow functions to have vague data types. #74

drwhut opened this issue Mar 8, 2020 · 0 comments
Labels
feature A new feature to consider.
Milestone

Comments

@drwhut
Copy link
Owner

drwhut commented Mar 8, 2020

With the VM now storing the types alongside the data in the stack, we should now be able to make custom functions with vague data types.

Values would still have distinct types in the VM, it would just mean that the VM would decide how to use them depending on their types.

We could always optimise by having more specific opcodes if we know for a fact a given value will be a distinct type.

@drwhut drwhut added the feature A new feature to consider. label Mar 8, 2020
@drwhut drwhut added this to the v0.4.0 milestone Mar 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature to consider.
Projects
None yet
Development

No branches or pull requests

1 participant