News for hackers. Stuff that matters.
Re:Python 3 Types in the Wild: A Tale of Two Type Systems [pdf] by cjfd on Thursday April 15, 2021 @12:45AM (#26816279)
It is strongly typed in the sense that 3 + "5" is an error. It also has duck typing which is weak. So, which is it? I would say it is more weak than strong.
Re:Python 3 Types in the Wild: A Tale of Two Type Systems [pdf] by NoThisIsMe on Thursday April 15, 2021 @01:06AM (#26816361)
There are two axes: strong/weak and dynamic/static.

Examples:

Python: strong, dynamic

PHP: weak, dynamic

C: weak, static

Haskell: strong, static

Re:Python 3 Types in the Wild: A Tale of Two Type Systems [pdf] by zo1 on Thursday April 15, 2021 @04:53AM (#26817862)
Duck-typing doesn't imply weak typing, but rather dynamic typing. Can you explain why you consider dock-typing as being weak-typing?