I have sent a implementation of an extra method to the maintainer (as written in my journal earlier) of Date::Holidays::DK (LTHEGLER). The aim was to try and get the module to be able to share its internal data - the module on CPAN should be updated soon.
The current version of Date::Holidays::DK (0.01) only holds the is_dk_holiday method. So my dk_holidays method returns the complete set of holidays for a given year.
I would very much like for the other Date::Holidays::* (and Date::Japanese::Holidays) modules to implement the same method (I have not started lobbying seriously for this yet).
Today it struck me, that if all the modules in the Date::Holidays::* namespace (and the Japanese one) implement differently named versions, using all of them will result in long programs - and the solution is of course polymorphy.
SO! - I have just mailed the author of Date::Holidays::DK a new patch implementing the following methods by wrapping the existing ones:
I would very much like for the other Date::Holidays::* (and Date::Japanese::Holidays) modules to implement the same method (I have not started lobbying seriously for this yet).
Or even at all, if you believe my inbox.
richardc - guilty party for Date::Holidays::UK