Another neat OCaml feature: the type of a partially applied printf call reflects the format string used! Not many statically typed languages have this property.
Perl is still very much a glue language, even in areas that are largely statically typed. Haskell's GHC depends on it, OCaml's opam uses it, and Nix had a perl dependency until last year too!
Wilfred Hughes
Shared words: OCaml, statically, typed, languages
Score: 204.1
This is really neat: an online collection of programs that can pass the type checker but fail at runtime, in a bunch of languages (Java, Scala, OCaml, Haskell, Rust): https://counterexamples.org/runtime-misinformation.html
It also discusses the design tradeoffs that led to these behaviours.
Moving from JS to statically typed Flow or TypeScript prevented 15% of bugs found in trunk: https://earlbarr.com/publications/typestudy.pdf
Interesting paper. Whilst I think this number might be used to justify both static and dynamic types, I'll take anything lightweight that reduces my bug count!
Wilfred Hughes
Shared words: statically, typed, type, used
Score: 118.7