April 12, 2010
3:54 p.m.
On Apr 12, 2010, at 5:33 42PM, Stéphane Ducasse wrote:
igor
peter snippets was just a dull example. Peter mentioned that some people fix consequences instead of causes....
Stef
Or their application may have different expectations for what methods are ok to return collections with duplicated/nils in them. In which case (in VW) mySourcesWithoutNilsOrDuplicates |myColl| myColl := List new. myColl addAll: self aSourceWithNils. myColl addAll self aSourceWithDuplicates. ^myColl asSet might have been an entirely legit use, which is sure to cause headaches if ported to a dialect which allows nils. Not that that's a common occurrence, or something we should account for, just sayin' Cheers, Henry