[racket] prop:dict question

From: Danny Yoo (dyoo at cs.wpi.edu)
Date: Sun Feb 12 17:24:44 EST 2012

I was looking at trying to implement a structure that represents a
dictionary, but some of the elements of the interface don't make too much
sense to me yet: there are elements corresponding to ref/set as I expected,
but what I didn't expect were iteration as well..  Since there's a separate
protocol for sequences in the form of prop:sequence, the prop:dict elements
corresponding to count, iterate-first, ... seem superfluous.  Why does
prop:dict include these methods?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120212/efb0ba8b/attachment.html>

Posted on the users mailing list.