[squeak-dev] Re: talk on Newspeak online

danil osipchuk danil.osipchuk at gmail.com
Wed May 7 09:26:23 UTC 2008


Igor, could you please give a link to the article where Gilad speaks about
it?
(I can not find anything related in his blog)

Danil

2008/5/7 Igor Stasenko <siguctua at gmail.com>:

> I read Gilad's blog and having some concepts which i think is
> redundant and smell like javaisms.
> For instance, i don't share the view, that all fields in class
> instance should be initialized and initialized once, by constructor
> (instance factory method).
> What about lazy initialization?
> What if superclass initializes ivar with something, then using that
> ivar during rest of initialization phase, and then at subclass
> initialization it can be overridden by another value, after done
> initializing superclass.
> I think that language shouldn't care or enforce rules aka
> 'constructors', its totally redundant to me. Developer should know
> himself, how and where initialize ivars, not in compiler/constructor.
>
> Declaring private/public fields looking redundant too: they should be
> always private.
> Instead, accessors #foo, #foo: can be made public or private by the will.
> But if you make field public, then it's accessors became public as
> well? But what if i want #foo to be public, but #foo: to be private?
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20080507/e32193ed/attachment.htm


More information about the Squeak-dev mailing list