« Return to Thread: [squeak-dev] talk on Newspeak online

Re: [squeak-dev] Re: talk on Newspeak online

by Igor Stasenko :: Rate this Message:

Reply to Author | View in Thread

2008/5/8 Igor Stasenko <siguctua@...>:
>  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.

 « Return to Thread: [squeak-dev] talk on Newspeak online

LightInTheBox - Buy quality products at wholesale price!