[squeak-dev] Object>>className
Levente Uzonyi
leves at caesar.elte.hu
Fri Mar 24 18:36:50 UTC 2017
On Fri, 24 Mar 2017, Tobias Pape wrote:
>
>> On 24.03.2017, at 18:10, Eliot Miranda <eliot.miranda at gmail.com> wrote:
>>
>> - doesn't provide much utility as it is effectively foo class name, and foo className saves one character.
>
> Law of Demeter.
Blindly applying such ideas will result in a huge mess. In this case
#className and #name cause more trouble than benefit. Object should shadow
as few accessors as possible.
Levente
>
> Best regards
> -Tobias
More information about the Squeak-dev
mailing list
|