[squeak-dev] Re: talk on Newspeak online

Igor Stasenko siguctua at gmail.com
Wed May 7 08:22:46 UTC 2008


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.



More information about the Squeak-dev mailing list