[squeak-dev] Re: talk on Newspeak online

Igor Stasenko siguctua at gmail.com
Thu May 8 07:59:17 UTC 2008


2008/5/8 Igor Stasenko <siguctua at gmail.com>:
>  Btw, no one disallow you from doing following:
>
>  MyStrictClass>>new
>    self isInDevelopmentMode ifTrue: [self checkConstructor].
>     ^ super new
>
>  so, it will cost you 1 extra send in deployed mode :)
>

Sorry for repost,
this example actually shows that developer can easily enforce own
(arbitrary) coding discipline, but without the need in changing
anything in language.

-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list