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

Drop Angle#== #42

Merged
merged 1 commit into from
Mar 29, 2024
Merged

Drop Angle#== #42

merged 1 commit into from
Mar 29, 2024

Conversation

rhannequin
Copy link
Owner

Including Comparable and implementing #<=> already covers value equality, so #== doesn't need to be implemented.

#eql? is still necessary for equality in hashes and sets.

This change also removes the redundant nil value from #<=> when two objects are not comparable.

Including `Comparable` and implementing `#<=>` already covers value
equality, so `#==` doesn't need to be implemented.

`#eql?` is still necessary for equality in hashes and sets.

This change also removes the redundant `nil` value from `#<=>` when two
objects are not comparable.
@rhannequin rhannequin self-assigned this Mar 29, 2024
@rhannequin rhannequin changed the title Remove #== from Angle Remove #== from Angle Mar 29, 2024
@rhannequin rhannequin changed the title Remove #== from Angle Drop Angle#== Mar 29, 2024
@rhannequin rhannequin merged commit 63613e8 into main Mar 29, 2024
8 checks passed
@rhannequin rhannequin deleted the remove-double-equal-method-from-angle branch March 29, 2024 15:33
rhannequin added a commit that referenced this pull request Mar 29, 2024
 ## 0.3.0 - 2024-03-29

_If you are upgrading: please see [`UPGRADING.md`]._

 ### Improvements

* Drop `Angle#==` ([#42])
* Improved accuracy with Sun's location predictions ([#41])

 ### Breaking changes

* **breaking:** Difference between true and apparent ecliptic and equatorial
  coordinates ([#41])
* **breaking:** Rename `Angle::as_*` into `Angle::from_*` ([#43])

[#41]: #41
[#42]: #42
[#43]: #43
rhannequin added a commit that referenced this pull request Mar 29, 2024
 ## 0.3.0 - 2024-03-29

_If you are upgrading: please see [`UPGRADING.md`]._

 ### Improvements

* Drop `Angle#==` ([#42])
* Improved accuracy with Sun's location predictions ([#41])

 ### Breaking changes

* **breaking:** Difference between true and apparent ecliptic and equatorial coordinates ([#41])
* **breaking:** Rename `Angle::as_*` into `Angle::from_*` ([#43])

[#41]: #41
[#42]: #42
[#43]: #43
rhannequin added a commit that referenced this pull request Mar 29, 2024
 ## 0.3.0 - 2024-03-29

_If you are upgrading: please see [`UPGRADING.md`]._

 ### Improvements

* Drop `Angle#==` ([#42])
* Improved accuracy with Sun's location predictions ([#41])

 ### Breaking changes

* **breaking:** Difference between true and apparent ecliptic and equatorial coordinates ([#41])
* **breaking:** Rename `Angle::as_*` into `Angle::from_*` ([#43])

[#41]: #41
[#42]: #42
[#43]: #43
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.

1 participant