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

real should not admit equality #58

Open
PH111P opened this issue Nov 1, 2019 · 0 comments
Open

real should not admit equality #58

PH111P opened this issue Nov 1, 2019 · 0 comments

Comments

@PH111P
Copy link

PH111P commented Nov 1, 2019

Currently, real is an eqtype which it shouldn't be, according to the SML Standard (see Appendix C). In particular, the following code should fail to elaborate:

1.0 = 1.0;
fn x => x = 1.0;

Further, the current equality on real does not work too well (as one would expect, I'd say):

Moscow ML version 2.10
Enter `quit();' to quit.
- 1.0000000000000001 = 1.0;
> val it = true : bool

- 1.0000000000000001;
> val it = 1.0 : real
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant