|
|
|
|
|
by cerved
1455 days ago
|
|
Having a proper type system can be immensely powerful. IMHO, duck typing is just adding the burden of type checking to the application layer instead of letting a compiler or linter deal with it. Pythons lack of a good type system is what I miss most |
|
E.g. an example in D of a function that doesn't care too much about the type you pass in:
These are all fine: But this still throws a compile error like you'd expect: