[m-rev.] for review: export rational.inverse/1 from rational module

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Jan 12 16:30:43 AEDT 2004


On 12-Jan-2004, Julien Fischer <juliensf at students.cs.mu.OZ.AU> wrote:
> 
> On Mon, 12 Jan 2004, Ralph Becket wrote:
> 
> > Julien Fischer, Monday, 12 January 2004:
> > >
> > > Estimated hours taken: 0.5
> > > Branches: main
> > >
> > > Export the inverse function from the rational module.  This is a little
> > > cleaner than having to take the reciprocal of a number by dividing one by
> > > it.
> > >
> > > NEWS:
> > > 	Mention this change.
> > >
> > > library/rational.m:
> > > 	Export rational.inverse/1 from this module.
> >
> > Can I suggest a name change to rational.reciprocal?  `inverse' here
> > applies to the multiplicative inverse, but it could conceivably be the
> > additive inverse or pretty much anything else.
>
> I'd be quite happy with rational.reciprocal.  Are there any objections?

Not from me.  With Ralph's suggested name change, that diff looks fine to me.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list