[m-dev.] for review: tuples [1]

Ralph Becket rbeck at microsoft.com
Sun Aug 13 02:32:12 AEST 2000


> From: Peter Schachte [mailto:schachte at cs.mu.OZ.AU]
> 
> Ok, but braces just don't *look* right for tuples.

[Unable to resist an aesthetics debate] They look fine to me.
<...> would bugger up things even more, as Fergus points out.

On the representation front, I'd like to see efficient (i.e.
copy-free O(1)) decomposition of {|}, but am willing to
accept O(n) copying for {|} construction when extending a
tuple.

> > >     3)  Doesn't take away the orthodox notation for sets. 
>  It would be nice to
> > >         reserve braces for sets at some later time.
> > 
> > I can't see this being useful. list_to_set([1, 2, 3]) is not that
> > much worse than {1, 2, 3}.

I reckon tuples will be used more often than sets and that sets will
typically be referred to by name rather than structure.  So I'm happy
to have {...} for tuples.

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