Every programming language of note before and since JavaScript in 1995 has had integer data type, including the most recent (Go, Rust, Ceylon, Dart, Elixir, Julia, Swift, Kotlin, Crystal). (TypeScript is basically just an extension of JavaScript.)

Apparently, language designers find value in the integer data type. It’s hardly archaic. I’ll bet Microsoft would’ve added integers to TypeScript if they thought they could do it without breaking JavaScript. (Note that Microsoft added integers to C# and F#.)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store