[ANSI-Smalltalk] List of interesting methods, Collection only

Craig Latta craig at netjam.org
Sat Mar 22 19:10:08 GMT 2008


Hi Andres--

 > For most people *none* can be either grammatically singular or plural
 > depending upon the semantics (this is what is called *notional
 > agreement*).
 >
 > So, we have
 >
 > *None of the rice has been eaten* (singular *none* because *rice* is
 > singular, noncount)

      Actually, "none of the rice" is partitive.

 > So I think the selector we choose depends on how we read it.  For
 > example, do we read
 >
 > someCollection noneSatisfy: aBlock
 >
 > like this?
 >
 > "none of the objects in the collection satisfy aBlock"
 >
 > Or like this?
 >
 > "no object in the collection satisfies aBlock"

      Exactly. For what it's worth, in my experience the first reading 
is far more common. Given that both are correct, I'd go for the least 
disruptive choice for existing code, which is also the first reading.


-C

--
Craig Latta
improvisational musical informaticist
www.netjam.org
Smalltalkers do: [:it | All with: Class, (And love: it)]




More information about the ANSI-Smalltalk mailing list