On 2001-05-05 19:06:24, [EMAIL PROTECTED] wrote:
> 
> I've never encountered a real application where microsecond precision
> was necessary in a calendaring context. Is this a real concern?

Time representations are important in non-calendaring contexts too. As a
generalised framework for the CPAN, I'm sure some people who don't care
about reefknot will want to use it. ;-)

Attosecond precision is meaningless in real applications, but the SS.NN
syntax doesn't penalise the common case. Anything which doesn't need
sub-second precision can just ignore it.

> >  Something which avoided the re-blessing would be less fragile:
> >  
> >      my $disco  = Date::Discordian->new(disco => '23 Chaos, YOLD 3177');
> >      my $mdisco = Date::Mayan->new($disco);
> >      print $mdisco->as_string; # or whatever.
> 
> Not sure what you mean by "less fragile."

$self->{FOO} might mean different things to Date::Foo and Date::Bar, and
re-blessing references between classes doesn't call the constructor for
the second class. It's not worth the trouble to try to get everyone to
use unique keys (or, indeed, a hash-based object representation).

- ams

Reply via email to