-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
Implement int*
and uint*
builtin functinos
#645
Comments
If you haven't looking into go-cty, then I can 10/10 recommend it for a pseudo-type system like this - it's really flexible and powerful :) |
Although cty looks interesting, I believe we better stick with native Go types. Also, I'm not sure how cty can help in case of:
In func takes uint32 param. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We already have int() and float() builtins. Let's add others as well: uint8, byte, int64, float64, etc.
And we can change compiler to compile int for IntegerNode, and remove this code:
And for function calls we can delete this code:
And replace it with implicit added calls to int*.
The text was updated successfully, but these errors were encountered: