3 ms·
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.
by cjfd 6y ago
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.
- NoThisIsMe 6y agoThere are two axes: strong/weak and dynamic/static. Examples: Python: strong, dynamic PHP: weak, dynamic C: weak, static Haskell: strong, static
- zo1 6y agoDuck-typing doesn't imply weak typing, but rather dynamic typing. Can you explain why you consider dock-typing as being weak-typing?