Re:How “let it fail” leads to simpler code
by tsimionescu on Saturday July 16, 2022 @11:58PM
(#32124367)
JS's typing is weaker than Python's, but Python still has a relatively weak type system - particularly in old-style classes as GP was showing (class foo(object)-style classes fix those problems, or at least some of them) EDIT: I was wrong about new-style classes fixing this. Other dynamic languages are stronger than both - for example Common Lisp.
[ Parent
| on HN ]
There are no old-style classes in Python 3.
Re:How “let it fail” leads to simpler code
by tsimionescu on Sunday July 17, 2022 @12:19AM
(#32124432)
Oops, you're right, and the problem isn't fixed by new-style classes. I must have misremembered something.