| 1 |
Set::Infinite TODO |
| 2 |
|
| 3 |
- include "backtrack_callback" in the parameter list for _function() |
| 4 |
|
| 5 |
- document the "separators" method - use example from t/infinite.t |
| 6 |
Find out how to make it more user friendly. |
| 7 |
|
| 8 |
- quantize() should use "iterate" |
| 9 |
(unless this breaks _quantize_span) |
| 10 |
Find out how to unify "quantize" and the "_recurrence" module (DT::Set) |
| 11 |
|
| 12 |
- spaceship should return "undef" if the sets can't be compared. |
| 13 |
- "contains" should test the result of "==" for undef. |
| 14 |
- count() should return "undef" if the set can't be counted. |
| 15 |
|
| 16 |
- test new methods |
| 17 |
|
| 18 |
- methods: |
| 19 |
is_infinite |
| 20 |
exists( sub ) / any / ... |
| 21 |
|
| 22 |
- Deprecate min_a() |
| 23 |
min() should check "wantarray", instead. |
| 24 |
This can generate confusion in some cases - verify this. |
| 25 |
|
| 26 |
- New methods: map / grep |
| 27 |
From a discussion with Andrew Pimlott and Dave Rolsky |
| 28 |
Find out how to implement "block" syntax |
| 29 |
(" {} " instead of " sub{} ") -- use '&' prototype |
| 30 |
- test under 5.005_03 |
| 31 |
|
| 32 |
update: It looks like this is not possible: |
| 33 |
http://www.perlmonks.org/index.pl?node_id=312978 |
| 34 |
from perlsub: |
| 35 |
"Pretty much the exclusive domain of prototypes is to |
| 36 |
make a perl sub act like a builtin. Once you call it |
| 37 |
via $subref-> or &subname, you are no longer treating |
| 38 |
it as a builtin and prototypes are ignored." |
| 39 |
|
| 40 |
- Redo POD |
| 41 |
- difference between "size" and "count" |
| 42 |
|
| 43 |
- Change syntax: from Class::method to Class->method |
| 44 |
|
| 45 |
Old TODO: |
| 46 |
|
| 47 |
- parser (another module) |
| 48 |
|
| 49 |
- _quantize_span should only be used inside backtrack() |
| 50 |
Implementing quantize() using iterator() should make |
| 51 |
_quantize_span() unnecessary. |
| 52 |
|
| 53 |
- provide a constructor that allow for un-ordered and overlapping spans |
| 54 |
|
| 55 |
- verify and fix unbalanced trace_open/trace_close |
| 56 |
|
| 57 |
- move (offset, quantize), or most of Arithmetic.pm, to Date::Set |
| 58 |
- refactor "widgets" out of the main code. Maybe create |
| 59 |
a Set::Infinite::Widgets directory (offset, quantize). |
| 60 |
- give more standard names to Arithmetic.pm variables |
| 61 |
- implement "last of quantize" |
| 62 |
|
| 63 |
- remove _quantize_span() |
| 64 |
|
| 65 |
- a set with first == inf or last = -inf is an error! |
| 66 |
|
| 67 |
- tests for "iterate" min/max/first/last |
| 68 |
These may fail if "iterate" returns >= 2 elements |
| 69 |
- more tests for min/max/span/size on too_complex sets |
| 70 |
|
| 71 |
- find out how to compare "<=>" unbounded sets |
| 72 |
- try using first() in intersects() and "<=>" |
| 73 |
- test finding out min/max of integer open sets (see backtrack.t tests 2,3) |
| 74 |
|
| 75 |
- fix _todo/bigfloat, _todo/bigint |
| 76 |
|
| 77 |
BACKTRACK |
| 78 |
|
| 79 |
backtrack.t: |
| 80 |
|
| 81 |
test backtrack on: |
| 82 |
iterate -- returning more than 1 element |
| 83 |
compact |
| 84 |
tolerance |
| 85 |
complement |
| 86 |
|
| 87 |
backtracking: implement remaining tests in backtrack.t |
| 88 |
verify results in backtrack.t |
| 89 |
|
| 90 |
backtracking: document backtracking resolution |
| 91 |
|
| 92 |
SYNTAX |
| 93 |
|
| 94 |
extra: Make a 'strict' option for "quantize" and other filters, |
| 95 |
that will intersect |
| 96 |
each unit back to the object, that is: |
| 97 |
Interval: [************************] |
| 98 |
Quantized: [*********)[*********)[*********) |
| 99 |
Quantized->Stricted: [*****)[*********)[******] |
| 100 |
|
| 101 |
think about: "push-pop", "dup", "drop" mechanism |
| 102 |
|
| 103 |
think about: some "if-else" mechanism |
| 104 |
|
| 105 |
DOCUMENTATION |
| 106 |
|
| 107 |
check: POD formatting and contents |
| 108 |
|
| 109 |
verify, document parameter syntax everywhere |
| 110 |
|
| 111 |
document: |
| 112 |
??? offset option 'mode=>circle' |
| 113 |
new method 'list' |
| 114 |
iterate |
| 115 |
|
| 116 |
document as "internal": |
| 117 |
min_a |
| 118 |
max_a |
| 119 |
backtrack |
| 120 |
trace |
| 121 |
|
| 122 |
??? document: quantize extensibility through hash-subs |
| 123 |
|
| 124 |
CACHEING |
| 125 |
|
| 126 |
cache quantize by month/day/... |
| 127 |
-- doesn't work if 'quant' is changed |
| 128 |
-- doesn't check 'intersects' |
| 129 |
make a 'flush'-cache method. Make a 'cache-registry'. |
| 130 |
think about: caching for union, etc |
| 131 |
|