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

Define == instead of isequal #49

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

Kolaru
Copy link

@Kolaru Kolaru commented Mar 22, 2023

This defines == instead of isequal, because by default == falls down to ===. It caused me some problems (that are hard to reproduce) when using two different packages that both import PeriodicTable. Namely, the same elements ended up represented by two different objects, so that they where not identical according to === (nor according to == due to the automatic fallback).

Since isequal falls down to == by default, nothing should change.

I didn't add test as a failing scenario is quite hard to come with.

@Kolaru
Copy link
Author

Kolaru commented Jun 14, 2023

Gentle bump

@carstenbauer carstenbauer merged commit 1622441 into JuliaPhysics:master Jul 28, 2023
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 this pull request may close these issues.

2 participants