Created
October 19, 2017 01:51
-
-
Save yzyzsun/b1e170d24eccedbfd9c3d4d436db8fee to your computer and use it in GitHub Desktop.
Smalltalk syntax on a postcard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exampleWithNumber: x | |
|y| | |
true & false not & (nil isNil) ifFalse: [self halt]. | |
y := self size + super size. | |
#($a #a 'a' 1 1.0) | |
do: [:each | Transcript | |
show: (each class name); | |
show: (each printString); | |
show: ' ']. | |
^ x < y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment