>>110404417
CosmosLang once the --strict update is applied. It addresses many such issues found in JavaScript among other languages. Not limited to type inference, local-by-default (not global without var noise) and functional programming.
$ ./cosmos -q "x=1 and x=''"
Compile error at 1:9: Expected Real, got String
$ ./cosmos -q "rel p(x) x=1; and p([])"
Compile error at 1:19: No matching type/mode signature for p
functor(Cons, Functor)
functor(Person, Functor)
c=Cons(1,Cons)
c=Person
| Compile error at XX:1: Expected Cons, got Person