[Cuis-dev] Removal of detectSum: ?

Luciano Notarfrancesco luchiano at gmail.com
Mon May 20 05:32:44 PDT 2019


I just noticed the method Collection>>detectSum: that does the same as
'sum: ... ifEmpty[0]'. Besides being redundant, the name feels weird, as I
expect the detect* family of messages to return an element of the
collection. Does it seem reasonable to remove it? The attached changeset
changes the two senders to call sum:ifEmpty: instead and removes it. There
don't seem to be other senders in packages, but I just checked the official
packages.

Cheers,
Luciano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20190520/0042c97e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3755-detectSumRemoval-LucianoEstebanNotarfrancesco-2019May15-16h43m-len.1.cs.st
Type: application/vnd.sailingtracker.track
Size: 3825 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20190520/0042c97e/attachment.bin>


More information about the Cuis-dev mailing list