Smalltalk by example: Coding conventions

Function and variable naming

Words within function names are split using uppercase letters (String.isString and String.asByteArray). All class and namespace names start with an uppercase letter (class String and namespace Smalltalk). Variables start with a lowecase letter.


Although indentation has always been something which was of personal taste to the programmer, if you arn't a programmer yet, you need something. Hopefully this page will be updated according to user comments when needed. For the rest, this is based on personal taste.


Every function ends with an execute mark (!).

Back to GST by example

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.