[Cuis-dev] Interesting thoughts about Color
Phil B
pbpublist at gmail.com
Sun Apr 28 10:20:09 PDT 2019
I was reading a thread going on over on pharo-dev about Color and thought
it was apropos for us. Many of the more commonly used instance methods
(#lighter, #darker, #alpha: etc.) are named as if they were accessors or
actions which would most naturally be assumed to modify the current color
but actually create a new color. If you work with Color to any extent the
current behavior is accepted as normal since it is quasi-immutable, but
this naming/behavior impedance mismatch does seem pretty obvious when you
think about it. Perhaps we should think about modifying these method names
to better reflect what they are actually doing? (and perhaps make Color
more explicitly immutable?)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20190428/3df82d6b/attachment-0001.html>
More information about the Cuis-dev
mailing list