喜欢Smalltalk或Lisp吗?
编辑
控制结构类似于:
Java Python
if( condition ) { if cond:
doSomething doSomething
}
或者
Java Python
while( true ) { while True:
print("Hello"); print "Hello"
}
逻辑运算符
Java, Python
1 + 2 // + operator
2 * 5 // * op
在 Smalltalk 中(如果我没记错),应该是这样的:
condition ifTrue:[
doSomething
]
True whileTrue:[
"Hello" print
]
1 + 2 // + is a method of 1 and the parameter is 2 like 1.add(2)
2 * 5 // same thing