Good interfaces gone bad

Michael Rueger m.rueger at acm.org
Fri Jun 22 22:55:04 UTC 2001



"Noel J. Bergman" wrote:

> For example, could one seriously suggest that "Color fromString: '#FFCCAA'"
> is unclear or inconvenient compared to '#FFCCAA' asColor", or that it would
> be worth polluting the String interface for the perceived convenience, were
> someone so inclined?

But then you are giving up polymorphism:
aVariableContainingAColorOrBitMapOrStringOrWhatever asColor

Michael

-- 
 "To improve is to change, to be perfect is to change often." 
                                            Winston Churchill
+------------------------------------------------------------+
| Michael Rueger    m.rueger at acm.org      ++1 (310) 937 7196 |
+------------------------------------------------------------+





More information about the Squeak-dev mailing list