There is Hindley-Milner type inference. Don't need to type types in most cases. See, for example, OCaml.
Type inference does not mean untyped. Arguably, getting a type error when you didn't write a single type hint makes things even more confusing if you are not an experienced programmer.
Re:Python's Type Checking Renaissance
by wool_gather on Tuesday January 26, 2021 @12:45PM
(#25918853)
That comes with its own tradeoffs: increased compile time and more effort needed to create error messages that are helpful to the user.
Re:Python's Type Checking Renaissance
by GeorgeWBasic on Tuesday January 26, 2021 @08:27PM
(#25923150)
Ocaml is probably the fastest compiling language I've ever used.
> more effort needed to create error messages that are helpful to the user.
Well, sure, but that's a tradeoff for the developers of the language to consider. As a user, there are already plenty of statically typed languages to choose from with many person-hours put into just that.
Re:Python's Type Checking Renaissance
by erik_seaberg on Tuesday January 26, 2021 @09:54PM
(#25923711)
I want to offload as much work as we possibly can to the compiler. My brain will always be millions of times slower.
Re:Python's Type Checking Renaissance
by dan_quixote on Tuesday January 26, 2021 @09:42PM
(#25923632)
Is it really that burdensome for novice programmers? Maybe it's just been too long for me to remember the pains...but I'd expect most novices to heavily use primitive types which shouldn't be that hard to grok.
As a trainer, experience teaches me that it's also much easier for beginners.
Now, types are nice to have for bigger code bases, but that doesn't mean there is no place for a language with optional typing.