[m-rev.] for review: type_spec and typeclass constraints
Fergus Henderson
fjh at cs.mu.OZ.AU
Tue Aug 20 05:35:38 AEST 2002
On 20-Aug-2002, Mark Brown <dougl at cs.mu.OZ.AU> wrote:
>
> Not requiring the caller to construct and pass a dictionary can surely
> be a significant efficiency gain, can't it?
Yes.
> in the case that the ground constraint is
> not explicitly present but comes about because of a type_spec request, I
> think it is highly likely that the programmer is trying to avoid the need
> for a caller to provide a dictionary at run time. Requiring the
> typeclass instance to be visible to the callee is, IMHO, a relatively small
> price to pay to achieve this.
I agree.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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