[Cuis-dev] Interesting thoughts about Color
Casey Ransberger
bahweep at icloud.com
Fri May 3 17:58:37 PDT 2019
It’s specifically that #asEverythingICanThinkOf is used pervasively and polymorphically throughout the system to convert an object of one class to another. Overloading that convention should probably be avoided in my view.
Counter-arguments are (of course) invited. I’m okay with adding #butX if it really helps people. I’m not sure it would though.
—C
> On May 3, 2019, at 1:48 PM, Phil B <pbpublist at gmail.com> wrote:
>
> Casey,
>
> Interesting and good point... hadn't thought about it from that angle (i.e. #as<whatever> as being a weak indicator for instancing). What do you think about Juan's #but... idea?
>
> Quibble away... no point in changing out one set of flaws for another unless there's a significant net gain.
>
>
>> On Fri, May 3, 2019, 12:17 PM Casey Ransberger via Cuis-dev <cuis-dev at lists.cuis.st> wrote:
>> Below
>>
>> > On Apr 28, 2019, at 5:43 PM, Phil B via Cuis-dev <cuis-dev at lists.cuis.st> wrote:
>> >
>> > FWIW, my first thought was along the lines of #asDarkerColor which fits with the other #as* methods but doesn't read as nicely
>>
>> Hrm... don’t like #as... here because #asSomething normally answers an instance of a different class with regard to the receiver. This would confuse my expectations.
>>
>> Sorry to quibble about naming... I see where you’re coming from, though.
>>
>> —C
>> --
>> Cuis-dev mailing list
>> Cuis-dev at lists.cuis.st
>> https://lists.cuis.st/mailman/listinfo/cuis-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20190503/715ae5e2/attachment.html>
More information about the Cuis-dev
mailing list