jiff/tests
Andrew Gallant ad53f14f92 span: treat weeks as invariant when days are invariant
Basically, if callers opt into days being invariant---and thus no
relative date is required to resolve its length---then weeks are also
treated as invariant.

Temporal doesn't do this. As I understand it, I think the reasoning is
that they might some day support calendars that don't use 7 day weeks.
However, I think it's still pretty unlikely for Jiff to support
non-Gregorian calendars (other than things like the ISO 8601 week date
calendar). And moreover, I believe the only calendars to use weeks that
aren't 7 days are ancient calendars. I believe all actively used
calendars use 7 day weeks. So for this assumption to be wrong, Jiff
would not only need to support non-Gregorian calendars but _ancient_
non-Gregorian calendars. I think that's probably never going to happen
and is best left to specialty crates.

Because of that, I think it's say to support invariant weeks *when* the
caller opts into invariant days.

Closes #136
2025-02-02 13:39:15 -05:00
..
tc39_262 span: treat weeks as invariant when days are invariant 2025-02-02 13:39:15 -05:00
lib.rs span: allow ambiguous_negative_literals 2024-07-27 06:09:13 -07:00