Skip to content

Drop Angle#==#42

Merged
rhannequin merged 1 commit intomainfrom
remove-double-equal-method-from-angle
Mar 29, 2024
Merged

Drop Angle#==#42
rhannequin merged 1 commit intomainfrom
remove-double-equal-method-from-angle

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
@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