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
Removing Real Type #495
Comments
Closed
Realistically, for now it doesn't matter. I think it makes a lot of sense to remove this type, and then restore it at a later date (if appropriate). |
DavePearce
added a commit
that referenced
this issue
Jan 28, 2016
This removes the real type from WyC, WyIL and WyJC. This is a fairly major change, but was pretty easy to do. The remain jobs are to update the test cases and standard library.
DavePearce
added a commit
that referenced
this issue
Jan 28, 2016
This removes all functions which previously operated on the real data type, including any related constants (such as PI).
DavePearce
added a commit
that referenced
this issue
Jan 28, 2016
This removes or updates tests involving the real data type which is now removed, given that the real type has now been removed. In some cases, I may have been overzealous in removing some valid tests and I should revisit this.
DavePearce
added a commit
that referenced
this issue
Jan 28, 2016
This removes or updates test cases which involve the real data type that has recently been removed. Where possible, I have adjust test cases to use alternative types, like bool, byte or int. In some cases, however, I felt there was no useful alternative.
Closed
Done. Need to remove cast operator now #576. |
This was referenced Jan 28, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An interesting idea is the removal of the
real
type. The major points here are:We don't want a single real type. Rather, we want a fraction, a decimal, float, etc.
We can avoid ambiguous casts. This may or may not be true.
This further simplifies the language.
We can still retain decimal constant literals. I think we definitely want to keep these.
But, how does this affect verification. For example, how do we specify floating point operations?
The text was updated successfully, but these errors were encountered: