hit a speedbump. maximum and minimum are max & min absolutely!

Projecting flattened dates out to both infinities is prohibitively wacky. Do I pick arbitrary maximum and minimum dates? Should I forgo premature projection, in lieu of on-demand processing? a combination of both?
Those are my leading choices atm.
This commit is contained in:
aj
2010-11-04 01:30:46 -07:00
parent 2f727dd8bb
commit d48d32ddbb
4 changed files with 56 additions and 31 deletions

View File

@@ -11,3 +11,10 @@ project(Rule=#rule{from=F, to=only}) ->
not_done;
project(Rule=#rule{from=F, to=T}) ->
Dates= lists:map(fun(Y)-> ezic_date:for(Rule, Y) end, lists:seq(F, T)).
% returns all the years inbetween
years(_, Rule=#rule{from=F, to=only}) ->
[F];
years(Max, Rule=#rule{from=F, to=maximum}) ->
fudge.