4 ms·
The intended question is: is python statically typed? Strictly speaking, it depends on what you call a type. If you think of all possible values (integers, stri
by amelius 11y ago
The intended question is: is python statically typed? Strictly speaking, it depends on what you call a type. If you think of all possible values (integers, strings etc.) as being of a single type, then python is statically typed. However, most people wouldn't think of the values that way.
- masklinn 11y ago> The intended question is: is python statically typed? Erlang isn't statically typed, yet you can't do what the OP shows.
- chc 11y agoAren't you begging the question?
- masklinn 11y agoNo. I'm pointing out an inconsistency in GP's interpretation.
- chc 11y agoUnless I'm missing something, it's only an inconsistency if you assume Erlang is not statically typed, which is why I said you seem to be begging the question. Erlang (and indeed any dynamic language) could be viewed as statically typed in the not-particularly-useful way amelius was describing.
- rusabd 11y agoyes https://en.wikipedia.org/wiki/Lambda_calculus#Typed_lambda_calculus https://en.wikipedia.org/wiki/Lambda_calculus#Typed_lambda_c... ``From a certain point of view, typed lambda calculi can be seen as refinements of the untyped lambda calculus but from another point of view, they can also be considered the more fundamental theory and untyped lambda calculus a special case with only one type.''
- unfamiliar 11y agoWhere should I start reading to understand lambda calculus?
- rusabd 11y agoI like this one http://worrydream.com/AlligatorEggs/ http://worrydream.com/AlligatorEggs/