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

🙅 <Something> should not compare names #377

Closed
favonia opened this issue Jun 5, 2022 · 7 comments · Fixed by #378
Closed

🙅 <Something> should not compare names #377

favonia opened this issue Jun 5, 2022 · 7 comments · Fixed by #378

Comments

@favonia
Copy link
Collaborator

favonia commented Jun 5, 2022

In #376, it was discovered that <something> might be comparing names in Global.t that should be used purely for printing.

@jonsterling Seriously, what's wrong with us!!! 😆

@favonia favonia changed the title Conversion checker should not compare names 🙅 Conversion checker should not compare names Jun 5, 2022
@jonsterling
Copy link
Collaborator

i couldn't figure out where this is happening... a bit bizarre

@jonsterling
Copy link
Collaborator

I can confirm that conversion is not comparing names: https://github.com/RedPRL/cooltt/blob/main/src/core/Conversion.ml#L413

So it must be happening somewhere else... 😦

@favonia favonia changed the title 🙅 Conversion checker should not compare names 🙅 <Something> should not compare names Jun 5, 2022
@favonia
Copy link
Collaborator Author

favonia commented Jun 5, 2022

It could also be that we accidentally wrote sym0 = sym1 somewhere 😱

@favonia
Copy link
Collaborator Author

favonia commented Jun 5, 2022

The kado library looks okay. 🤔

@jonsterling
Copy link
Collaborator

jonsterling commented Jun 5, 2022 via email

@favonia
Copy link
Collaborator Author

favonia commented Jun 5, 2022

What about compare?

I found RedPRL/kado#10 🤣 but this should only affect efficiency

@favonia
Copy link
Collaborator Author

favonia commented Jun 5, 2022

@jonsterling Okay, I think this is it?

cooltt/src/core/Dim.ml

Lines 12 to 13 in 7408368

let equal : t -> t -> bool = (=)
let compare : t -> t -> int = compare

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

Successfully merging a pull request may close this issue.

2 participants