-
Notifications
You must be signed in to change notification settings - Fork 33
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
Remove Cast Operator #576
Labels
Milestone
Comments
Closed
One of the key challenges is that this requires the reintroduction of width subtyping for records. |
DavePearce
added a commit
that referenced
this issue
Jan 28, 2016
This removes the syntax for cast expressions, though not the corresponding coercion bytecode. Also, updates test cases accordingly. One test is failing as it relies on width subtyping of records, which must be reintroduced.
DavePearce
added a commit
that referenced
this issue
Jan 28, 2016
This operator was not being used, and contained only redundant code now. Hence, removed.
Hmmm, so realistically this is an issue. The problem is that width subtyping overlaps with the functionality provided by open records. Furthermore, I want to avoid implicit coercions altogether. For now, I think we'll leave the cast operator specifically to handle this issue and may revisit in future. |
DavePearce
added a commit
that referenced
this issue
Jan 28, 2016
This operator was not being used, and contained only redundant code now. Hence, removed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since the removal of the
real
data type (#495), the cast operator has become useful. Therefore, I propose to remove it.The text was updated successfully, but these errors were encountered: