On Wed, Sep 20, 2000 at 08:35:20AM +1100, Damian Conway wrote:
> > No other builtin dies like that at
> > runtime. Perhaps a return of undef would be more like other operators.
>
> That was my original proposal, but it was howled down by the
> mathematical elite, who vigorously insisted that it would break the
> fundamental mathematical properties of the entire Cosmos, leading to
> catastrophic rifts in the timespace continuum. Or something like that.
> Eventually, I gave in.
Well mathematitions need to learn that not everything works in a mathematical
way. Some things are just chaotic by nature.
> > > If the reduction subroutine is ever terminated by a call to C<last>, the
> > > enclosing C<reduce> immediately returns the last reduction value -- or
> > > list of partial values -- to that point. If the C<last> occurs during
> > > the first reduction, an exception is thrown.
> >
> > Again, no other builting currently throws an exception. If throwing
> > an exception is to become the norm then that should be a separate
> > RFC suggesting that builtins throw exceptions, but reduce should do
> > what others do.
>
> Even at the risk of Destroying the Entire Universe???
>
> What do others think?
Ask me again tomorrow, I might change my mind :)
Graham.