Slate Living Tutorial

to those about to rock...

Syntax Introduction

Slate's syntax is very similar to that of Smalltalk. Every statement ends with a full-stop ('.'). From a C++/Java programmer's point of view Slate has the following differences:

Operators are evaluated from left to right:

3 + 4 * 5;
=>
3 + (4 * 5).

There is no dot ('.') between the object and the method being called:

x.doSomething();
=>
x doSomething.

Methods taking multiple arguments:

list.put(x, index);
=>
list at: index put: x.

...

Please read the Slate manual for a detailed introduction.