Tuesday, December 1, 2009

More Syntax

I finished another chapter in the book today. It was a fairly short chapter which dealt with the basic rules of syntax in smalltalk. One of the points it stressed continuously was how simple the syntax truly is. Eventually it boiled down all squeak programming to 5 simple rules
Rule 1. Everything is an object.
Rule 2. Every object is an instance of a class.
Rule 3. Every class has a superclass.
Rule 4. Everything happens by message sends.
Rule 5. Method lookup follows the inheritance chain.
One of the most difficult ideas to grasp was that even the classes were objects. This next chapter that I've just started deals with development in squeak. Hopefully this will provide greater insight into some of the more in depth details that previous chapters have left out.

No comments:

Post a Comment