[m-dev.] for review: add ++ and -- operators

Peter Ross peter.ross at miscrit.be
Tue Aug 8 01:36:34 AEST 2000


On Mon, Aug 07, 2000 at 09:27:06AM +1000, David Overton wrote:
> On Fri, Aug 04, 2000 at 08:59:22PM +1000, Michael Day wrote:
> > Add the line:
> > 
> > ops__op_table("++", after, yfx, 500).           % Mercury extension
> > 
> 
> Hi Michael,
> 
> You may want to consider making `++' right-associative (i.e. xfy)
> since, as Peter Schachte has pointed out, this is more efficient for
> stringing multiple appends together.
> 
I suggest that you adopt that predencence and associativity of ++ that
haskell uses.

Pete
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list