[m-rev.] field syntax (was: smart recompilation)

Tyson Dowd trd at cs.mu.OZ.AU
Tue Jul 3 11:49:12 AEST 2001


On 23-Jun-2001, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
> `Object ^ Field' is just a synonym for `Field(Object)'. I think the
> only argument was that the `Object ^ Field' syntax was a bit redundant.

Can I add the note that the redundancy also makes it very explicit.

Field(Object) is pretty difficult to tell apart from NotField(Object),
but Object ^ Field is impossible to confuse with NotField(Object).

That is a round-about way of saying -- it would be nice to get rid of
Field(Object) and just use Object ^ Field.  This way you always know
whether a function is intended to be used as a field accessor or not.

Tyson.
(apologies if this has already been discussed elsewhere in this thread,
I'm reading some older threads in order).
--------------------------------------------------------------------------
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