|| x = "Hello"
|| y = FunctionThatReturnsAString() // is now a string
x = 1 // fails to compile
y = 2 // fails to compilelet answer = 42let _ answer โ 42Languages with Type Inference include Go, TypeScript, Rust, Swift, Scala, Kotlin, Haskell, Prolog, Crystal, D, Elm, Haxe, Chapel, OCaml, F#, Standard ML, Wa-lang, ML, Frege, Opa, RDF, Ceylon, Nemerle, Boo, Xtend, Stan, Speedie, kaikai, Morloc, NOVA, Faber, Abyss, Lateralus, Obliq
Languages without Type Inference include Veryl, Mach
View all concepts with or missing a hasTypeInference measurement
Read more about Type Inference on the web: 1.