[ANSI-Smalltalk] List of interesting methods, Collection only
Andres Valloud
andres.valloud at gmail.com
Sat Mar 22 03:35:52 GMT 2008
Oops! Thank you for the correction.
Andres.
On Thu, Mar 20, 2008 at 3:54 AM, Dennis Smith <dennis at cherniaksoftware.com>
wrote:
>
>
> Andres Valloud wrote:
>
> Hello,
>
> Paolo's list had the following messages for Collection (note the list is
> subsequently trimmed below).
>
> Collection class>>join:
> Collection>>anyOne
> Collection>>copyReplacing:withObject:
> Collection>>copyWith:
> Collection>>copyWithout:
> Collection>>count:
> Collection>>empty
> Collection>>fold:
> Collection>>gather:
> Collection>>identityIncludes:
> Collection>>isEmpty
> Collection>>isSequenceable
> Collection>>noneSatisfy:
> Collection>>notEmpty
> Collection>>occurrencesOf:
> Collection>>removeAll:
> Collection>>removeAll:ifAbsent:
> Collection>>removeAllSuchThat:
> Collection>>size
>
>
> >From the above, I think the following are good candidates:
>
> Collection>>copyReplacing:withObject: (perhaps renamed to
> copyReplacing:with:)
> Collection>>copyWith:
> Collection>>copyWithout:
> Collection>>count:
> Collection>>fold: (I know Squeak does not have this)
> Collection>>noneSatisfy: (renamed to noneSatisfies:?)
>
> >From a strictly english standpoint, "none satifsy" is correct. You only
> use "satisifies" with "one",
> so it should stay as-is.
>
> Collection>>removeAllSuchThat: (I'd prefer to use the selectors
> eject:/keep:)
>
>
> I also have questions about these:
>
> Collection>>empty (isn't this removeAll?)
> Collection>>gather: (what's this?)
> Collection>>removeAll: (what is the argument?)
> Collection>>removeAll:ifAbsent:
>
>
> I do not have much of an opinion on these:
>
> Collection>>anyOne (perhaps renamed to #any)
> Collection>>identityIncludes:
>
>
> Thoughts?
>
> Andres.
>
> ------------------------------
>
> _______________________________________________
> ANSI-Smalltalk mailing listANSI-Smalltalk at lists.openskills.orghttp://lists.openskills.org/cgi-bin/mailman/listinfo/ansi-smalltalk
>
>
> --
> Dennis Smith +1 416.798.7948
> Cherniak Software Development Corporation Fax: +1 416.798.0948
> 509-2001 Sheppard Avenue East dennis at CherniakSoftware.com
> Toronto, ON M2J 4Z8 sip:dennis at CherniakSoftware.com
> Canada http://www.CherniakSoftware.com
> Entrance off Yorkland Blvd south of Sheppard Ave east of the DVP
>
>
> _______________________________________________
> ANSI-Smalltalk mailing list
> ANSI-Smalltalk at lists.openskills.org
> http://lists.openskills.org/cgi-bin/mailman/listinfo/ansi-smalltalk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openskills.org/pipermail/ansi-smalltalk/attachments/20080321/9544ff58/attachment.html
More information about the ANSI-Smalltalk
mailing list