Comparisons between Smalltalk and Python

For any of you who appreciate Python, this should make smalltalk a little more familiar.

Advantages of Python - Easy Learning Curve - Large Amounts of Documentation - Plethora of modules available

Advantages of Smalltalk

- Mostly written in itself, allows coder direct access to the lang's own code - Fast - Very Object Oriented - Very flexible whitespace - Thread management - Easy to add features via the parcel manager - Has many different arrays; a Set, OrderedCollection, etc.

Advantages of Both

- Object Oriented - Interpreted - Functional - Easy to read

Objects and Methods

Python:

class SomeClass

def createWindow(name, size, location):

#do something

.

.

.

# Later, to use this method...

anObject = SomeClass()

anObject.createWindow('title', (300, 400), (0, 0))

Smalltalk:

SomeClass <--- This will be in the System Browser

createWindow: name size: size location: location

"do something"

.

.

.

"Later, to use this method..."

anObject := SomeClass new.

anObject createWindow: 'title' size: #(300 400) location: #(0 0).