3 ms·
As far as I know there is no way for Erlang to automatically cast between types (except numeric, but these are treated as one type with variants), so by any def
by hauleth 8y ago
As far as I know there is no way for Erlang to automatically cast between types (except numeric, but these are treated as one type with variants), so by any definition that I know it is strongly typed language. Dynamically typed, yes, but strongly.
About other languages that are weakly typed in "current use":
- JavaScript is still weakly typed as far as I am concerned, nothing prevents you from 0 == "" and get true value.
- PHP is still weakly typed, with optional type hinting but still sometimes can bite you in the ass
Erlang + Dialyser can be read as quasi-static typing, but it is still strong one.