I am integrating the joda into groovy in a groovy manner. Really not 
much needs to be as the joda methods are pretty much a clean DSL. But 
some classes can take advantage of overloaded operators.

I have extended Integer for all the {Year, Month, ..., Minutes} classes 
so you can do things like "3.days" or "1.week" and whatnot. My questions 
relates to these classes vs the Period class. The same operators that I 
defined for BaseSingleFieldPeriod equally apply for Period -- but not 
both. Only one of these two can be mapped into the groovy operators for 
Integer.

Which one makes the most sense? Any opinions would be much appreciated.

-barry



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to