>>> a=1>>> b=\'1\'>>> print a+bTraceback (most recent call last): File \"<stdin>\", line 1, in <module>TypeError: unsupported operand type(s) for +: \'int\' and \'str\'선언시에만 타입 명시가 필요없다 뿐이지 연산시에는 동적이지 않기 때문에...루비나 펄은 어떤가요?
? 동적인거랑은 관계없음.
STFW : Lazy Binding
http://codepad.org/v6ZqeIsD
$a = 1; $b = \'1\'; print $a+$b;
a = 1; b = \'1\'; print a+b; //ruby Line 3:in `+\': String can\'t be coerced into Fixnum (TypeError) from t.rb:3
펄은돼고 루비는 뻑남 \'ㅅ\'