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

Ralph Becket rafe at cs.mu.OZ.AU
Mon Jan 12 15:29:06 AEDT 2004


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.

-- Ralph
--------------------------------------------------------------------------
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