Re:Python's Type Checking Renaissance
by smlckz on Tuesday January 26, 2021 @11:58AM
(#25918175)
There is Hindley-Milner type inference. Don't need to type types in most cases. See, for example, OCaml.
[ Parent
| on HN ]
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.