[m-rev.] (no subject)

Peter Wang novalazy at gmail.com
Fri May 1 18:37:47 AEST 2020


On Fri, 1 May 2020 18:34:28 +1000 (AEST), Julien Fischer <jfischer at opturion.com> wrote:
> 
> Hi Zoltan,
> 
> On Fri, 1 May 2020, Zoltan Somogyi wrote:
> 
> > 2020-05-01 15:34 GMT+10:00 Julien Fischer<jfischer at opturion.com>:
> >>>              % and math_domain_error a type in the
> >>> +            % same module.
> >>
> >> No. Users may want to catch such exceptions so the type needs be in a
> >> publicly documented part of the library.
> >
> > You are right.
> >
> >> My suggestions would be:
> >>
> >>     1. in builtin.m
> >>
> >>     2. in exception.m, alongside software_error/1
> >
> > Is that an order of preference?
> 
> No.  There's a very small efficency argument for keeping it out of
> builtin given that it's always imported, so I'd lean towards exception.

I prefer exception as well.

Peter


More information about the reviews mailing list