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

Remove Cast Operator #576

Closed
DavePearce opened this issue Jan 28, 2016 · 2 comments
Closed

Remove Cast Operator #576

DavePearce opened this issue Jan 28, 2016 · 2 comments

Comments

@DavePearce
Copy link
Member

Since the removal of the real data type (#495), the cast operator has become useful. Therefore, I propose to remove it.

@DavePearce
Copy link
Member Author

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.
@DavePearce
Copy link
Member Author

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
Labels
Projects
None yet
Development

No branches or pull requests

1 participant