[m-rev.] Fast string library
Ralph Becket
rbeck at microsoft.com
Tue May 15 19:38:22 AEST 2001
> From: Simon Taylor [mailto:stayl at cs.mu.OZ.AU]
> Sent: 15 May 2001 03:34
>
> > :- type str
> > ---> str(int, string) % length.
> > ; sub(int, int, str) % index, length.
> > ; cat(int, str, str). % length.
>
> The big problem with this kind of string representation is that
> the builtin comparison operation won't work properly, and we
> don't yet allow user-defined comparison predicates. This means
> that using `str's as keys in a map won't do what you want.
>
> This module probably isn't really usable until that's fixed.
You're right, of course. Typeclasses seem like the right thing
for the job... another one for v2.
- Ralph
--------------------------------------------------------------------------
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