| 1 |
KNOWN BUGS |
| 2 |
|
| 3 |
- the 'recurrence' argument should be $_, instead of $_[0]. |
| 4 |
This is too late to change, because there are many DateTime modules |
| 5 |
that use it. |
| 6 |
|
| 7 |
- 'set_time_zone' was published as a function, then as a mutator, |
| 8 |
then as a function, then as a mutator. |
| 9 |
It settled as a mutator. |
| 10 |
|
| 11 |
|
| 12 |
TODO list for DT::Set, DT::Span, and DT::SpanSet |
| 13 |
|
| 14 |
2004-11-29 |
| 15 |
|
| 16 |
- DateTime::SpanSet has no count() method |
| 17 |
|
| 18 |
2004-07-03 |
| 19 |
|
| 20 |
- what happens if the recurrence function returns an 'undef' ? |
| 21 |
(the program should die - add tests for this) |
| 22 |
|
| 23 |
- this POD entry is not entirely correct, it should be tested/fixed: |
| 24 |
|
| 25 |
The callbacks can return C<DateTime::Infinite::Future> and |
| 26 |
C<DateTime::Infinite::Past> objects, in order to define |
| 27 |
I<bounded recurrences>. |
| 28 |
In this case, both 'next' and 'previous' callbacks must be defined: |
| 29 |
|
| 30 |
- 'truncate' method ? |
| 31 |
|
| 32 |
- add set_time_zone tests to Span & SpanSet |
| 33 |
|
| 34 |
- add "mutability" tests for DT::Span, DT::SpanSet |
| 35 |
see 02immutable.t |
| 36 |
|
| 37 |
- implement add/subtract in DT::Span, DT::SpanSet |
| 38 |
- implement start/end aliases in DT::Set |
| 39 |
|
| 40 |
2004-06-25 |
| 41 |
|
| 42 |
- cleanup the examples in POD that use |
| 43 |
return $_[0] if $_[0]->is_infinite; |
| 44 |
and explain when and why to use this. |
| 45 |
- add tests for all examples given. |
| 46 |
|
| 47 |
----------------- |
| 48 |
|
| 49 |
- Test for errors, in case the "next/previous" |
| 50 |
recurrence spec is not followed (detect infinite loop). |
| 51 |
|
| 52 |
Give a message like: |
| 53 |
"A recurrence loop was detected. Check that you are using |
| 54 |
the latest DateTime::Event module version" |
| 55 |
|
| 56 |
Or, try to detect the error and automatically |
| 57 |
"downgrade" DateTime::Set. |
| 58 |
|
| 59 |
The problem is, the infinite loops happens |
| 60 |
_inside_ next(). There seems to be no way to |
| 61 |
detect this. |
| 62 |
|
| 63 |
- implement set( locale => .. ) in Span and SpanSet |
| 64 |
|
| 65 |
- Add tests for new methods: DateTime::SpanSet::map / grep |
| 66 |
|
| 67 |
- discuss functions like |
| 68 |
is_infinite |
| 69 |
is_empty |
| 70 |
|
| 71 |
- implement faster DT::Set::complement(), |
| 72 |
using 'function composition' |
| 73 |
|
| 74 |
- move all 'set-specific' code to Set::Infinite::_recurrence |
| 75 |
use accessors instead of structure references |
| 76 |
|
| 77 |
- functions like before(), after(), during() might be useful |
| 78 |
in DT::Span |
| 79 |
or maybe these should be called next(), previous(), current(), closest() |
| 80 |
|
| 81 |
- document better: |
| 82 |
how to transform a Span into an iterator - for example, |
| 83 |
get the list of days in a span |
| 84 |
|
| 85 |
- optimization: rewrite intersection of recurrences 'previous' function |
| 86 |
|
| 87 |
- optimization: extract start_set / end_set right from |
| 88 |
the data structure, if possible. |
| 89 |
|