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

Support primitive casting #124

Open
Champii opened this issue Jun 18, 2022 · 0 comments
Open

Support primitive casting #124

Champii opened this issue Jun 18, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Champii
Copy link
Owner

Champii commented Jun 18, 2022

We want to be able to cast primitives into some compatible alternatives

one_short: Int16
one_short: -> 1
main ->
  let x = one_short! :: Int64

We should not allow for dangerous casting like Int64 to Int32, and provide implementation that can safely fail for those cases.

@Champii Champii added the enhancement New feature or request label Jun 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant