by wvenable · 12y ago · 0 comments
I've never really heard the term untyped before -- I guess I'm old school and still call that dynamic typed. But JavaScript is also weakly typed. It will automatically convert strings to numbers, etc. Some languages, like Python, are dynamically typed but also strongly typed: No type declarations but no automatic conversions.
http://stackoverflow.com/questions/23282683/is-clojure-uni-t...
Edit: Sorry, learned something new just now. I'm very, very wrong.
Untyped is where operations are valid on everything because it's all a sequence of bits.
Dynamic is completely different and refers to when the type is discovered.
Sorry. However, Javascript is definitely dynamically typed.
The reason this is valuable is it opens up directly the techniques for "hybrid typing" such as PHP->Hack and Javascript->Typescript. It also is the basis for the compiler using type inference to accelerate certain portions of the code.