[mercury-users] Re: your mail

Ralph Becket rafe at cs.mu.OZ.AU
Wed Aug 4 10:40:58 AEST 2004

Gregory D. Weber, Tuesday,  3 August 2004:
> If it's good to fully qualify imported predicates, 
> why not also types and functions?

Type names appear in type expressions and function names appear in value
expressions; cluttering up expressions with module qualifiers can
seriously degrade their readability (consequently, it pays to choose
type and function names very carefully.)

Predicate names only appear once in a call (ignoring the occasional
higher order call) and often do something more complicated than a
function call, so including a module qualifier on imported predicate
names does not affect readability and allows the reader to go directly
to the right module if she wants to see the documentation for a given

Of course, this is a guideline rather than a rule.  You wouldn't write
`int.(<)(X, Y)' rather than `X < Y'.

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