Description
Feedback from @markusicu:
In the example in resolve_components, the expected_components_bag fields are
year
,month
,day
, but it might make more readable to beyear_style
,month_length
, etc., because the RHS values are not the numeric values for the year, month, & day, but rather styles. And maybe the type names should not just be “Year”, but “YearStyle”, etc., so that when you import the types (structs, enums, etc.) into your code, you don’t get misleading code from the POV of a new user.It’s strange that time_zone::IsoMinutes is an enum rather than a number type. More often, we have called such a thing a “-Style”.
For datetime::fields::*, I would rename “Day” to “DayType” or “DayField”
The structs in datetime::input::* are actually what they say they are, so they wouldn’t need a rename