News for hackers. Stuff that matters.
Re:Static types in Python by nine_k on Thursday October 13, 2016 @08:54PM (#12705450)
...which, of course, make it easier to assume the presence of a particular field and crash.

Using an explicit map for dynamic attributes at least makes you aware what is guaranteed and what is optional.

This removes much of the neat magic that such a dynamic approach affords to languages like Ruby, JavaScript, and, to a lesser extent, Python.

Re:Static types in Python by jon_smark on Friday October 14, 2016 @05:45AM (#12707018)
In the case of OCaml, the structural subtyping of object fields can never cause a crash, because it is verified at compile-time.