-
Notifications
You must be signed in to change notification settings - Fork 245
AstronomicalSimulation -> ReingoldSimulation
#7342
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
base: main
Are you sure you want to change the base?
Conversation
5c8e0c3 to
99cd652
Compare
99cd652 to
5ea69c0
Compare
sffc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this direction is consistent with #7340, since it takes advantage of the bullet point "We decide to tweak the precise astronomical simulation used" and keeps the type AstronomicalSimulation as representing an astronomical simulation, just a different one than we had been shipping before.
| /// | ||
| /// This corresponds to the `"islamic-rgsa"` [CLDR calendar](https://unicode.org/reports/tr35/#UnicodeCalendarIdentifier). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please say something like "there is currently no CLDR calendar that corresponds to this"
| Ok(AnyCalendarKind::HijriTabularTypeIIFriday) | ||
| } | ||
| Hijri(Some(HijriCalendarAlgorithm::Rgsa)) => Ok(AnyCalendarKind::HijriSimulatedMecca), | ||
| Hijri(Some(HijriCalendarAlgorithm::Rgsa)) => Err(()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't return Err elsewhere in this fn; what is the impact?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes we do, for -u-ca-islamic
| #[non_exhaustive] | ||
| pub enum ReingoldSimulation { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue: I prefer the old model where the fields are private because we might want fields to tweak behavior besides just the location, perhaps the crescent moon criterion, or how far back to run calculations or something
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can still change things because this is unstable. I prefer exposing one and not two unstable types
Co-authored-by: Shane F. Carr <shane@unicode.org>
No description provided.