Re: cvs: pear /Math_Vector Tuple.php
| From: | Stig S. Bakken | Date: | Sat, 27 Apr 2002 06:32:42 +0000 |
| Subject: | Re: cvs: pear /Math_Vector Tuple.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-3575@lists.php.net to get a copy of this message | ||
On Thu, 2002-04-25 at 12:30, Jesus M. Castagnetto wrote:
>
> --- "Stig S. Bakken" <ssb@fast.no> wrote:
> > On Thu, 2002-04-25 at 01:39, Jesus M. Castagnetto
> > wrote:
> [...snip...]
> > > + new PEAR_Error("An unidimensional array is
> > needed to initialize a Tuple",
> > > + null, PEAR_ERROR_DIE);
> >
> > You don't need to do this anymore. This is all you
> > need:
> >
> > PEAR::raiseError("message");
> >
> > Unless something really critial is wrong, you should
> > not specify an
> > error level at all when raising the error, because
> > then error handlers
> > will not be able to catch it.
> >
> > - Stig
>
> Saw that afterwards when I updated my local pear from
> CVS. Also, I was looking into moving Tuple (as well as
> List, Set and Bag) into a Collection package. Any
> reasons why not?
>
> Basically a Tuple should be immutable (to follow other
> similar constructs in other languages), a Set is
> mutable but contains only unique values (like math
> sets), a Bag (or multi-set) can contain repeated
> values and the order is not important. A List is like
> a Bag, but the values have an associated index.
>
> BTW, is there are .xsd version of package.dtd?
No, is .xsd a scheme definition?
- Stig