4 ms·
In case it wasn't clear, Smalltalk does have if statements. They just aren't special keywords like in most other languages; instead, they are methods of the Tru
by hboon 6y ago
In case it wasn't clear, Smalltalk does have if statements. They just aren't special keywords like in most other languages; instead, they are methods of the True/False classes.
The way it is implemented (hopefully) opens up the mind to how OO actually can work, but in practise, when you use if-else in Smalltalk, it's pretty much the same as in other languages.