The drawbacks to statically typed languages have become way less significant since most of them have "var" or an equivalent which saves on typing.
The drawbacks to statically typed languages have become way less significant since most of them have "var" or an equivalent which saves on typing.
Imagine if Typescript's type system if it were actually sound.
The research paper is here if anyone wants to read it. https://www.irif.fr/_media/users/gduboc/elixir-types.pdf
Typing has two meanings, the one intended here wasn't about types - it was about keyboards. The var keyword and similar syntax in modern languages is less typing where "typing" means pushing the little buttons on the keyboard, and the associated squiggles appearing on a display.
Do you mean type inference? Most typed-languages have that, even Haskell/Scala.
It gets iffy on dependent type systems like Agda/Idris.
#define let __auto_type
https://gcc.gnu.org/onlinedocs/gcc/Typeof.html
Having learned (old) C in college and taking a closer look at it lately, I was surprised how much you can make it look “modern”, what with _Generic, wchar_t, booleans and even this __auto_type.
It seems like with a couple #define macros and some discipline you can make it look and behave more ergonomic.