[mercury-users] tuple syntax

Robert Ernst Johann JESCHOFNIK rejj at cat.cs.mu.OZ.AU
Wed Nov 10 23:31:27 AEDT 1999


On Wed, 10 Nov 1999, Peter Schachte wrote:

> On Wed, Nov 10, 1999 at 10:27:52PM +1100, Peter Schachte wrote:
> > (This would be a lot nicer if Mercury had a decent syntax for
> > tuples, but let's just worry about one syntax hack at a time.)
> 
> Hmmm.  Here's an idea for a better tuple syntax.  Is there something
> wrong with this?  If not, it might be a nice easy addition to the
> standard library somewhere.
> 
> 	 :- type (A,B) ---> (A,B).


I asked DJ this exact question a few weeks ago. I cannot remember exactly
what he said, but I remember that there was a reason pair was defined like
it is. I think it may have been a precedence problem. DJ?


Rob
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list