Misleading doc string

Todd Fleming todd at flemingcnc.com
Fri Nov 25 18:12:44 PST 2005


I'd avoid having the word "key" in the description if possible.

How about:
"This returns true if the Mapping includes the argument as a value."

This is similar to the doc string for "m@(Mapping traits) includesKey: 
key" in mapping.slate. 

Todd

Brian Rice wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> That's an interesting point. I wrote it thinking "keyed" meant  
> "stored", but I see what you mean.
>
> How about:
> "Answers whether the Dictionary refers to this object (or an  
> equivalent one) with one of its keys."?





More information about the Slate mailing list