News for hackers. Stuff that matters.
Re:Python's Type Checking Renaissance by BiteCode_dev on Tuesday January 26, 2021 @11:50AM (#25918037)
It's a trade off. You don't want to write all your types for quick scripts, data analysis and small web sites.

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.

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.
Re:Python's Type Checking Renaissance by rscho on Tuesday January 26, 2021 @02:50PM (#25920298)
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.
Re:Python's Type Checking Renaissance by jgwil2 on Tuesday January 26, 2021 @09:39PM (#25923614)
> 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.