I meant strongly typed. My previous post works just as well with for example Python 3 or Erlang code with type annotations enforced by static analysis.
I was trying to make point that simple nature of REST protocol makes it possible to write webapps ‘guaranteed’ to be correct, at least server-side.
PHP is weakly typed. Common Lisp, Clojure, Haskell and OCaml are strongly typed.
PHP is dynamically typed, Haskell and OCaml are statically typed.
That said I would like to learn more about these statically typed functional languages.