On Fri, 18 Jun 2004, Flavio S. Glock wrote:

> Matt Sisk wrote:
> >
> > So I have a couple of questions:
> >
> >   1) why isn't that method a mutator? just curious
>
> There are no mutators in Date::Set, everything is "functional".
> ( Version 0.14 introduced a few mutators, but they were rolled back in
> version 0.15 )

Well, I thought this was a more a by-product of the natural UI for sets.
Things like intersection, complement, union, etc. are all operators which
by definition create new sets, and so should not mutate.  OTOH,
set_time_zone() doesn't seem like it should be creating a new set.


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

Reply via email to