Hacker News new | ask | show | jobs
by robertlagrant 1999 days ago
Python is also dynamic. That has nothing to do with this.

  >>> l = []
  >>> l.x = "hello"
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
  AttributeError: 'list' object has no attribute 'x'
Always adding arbitrary properties to an object is not a dynamic thing, it's just a bit silly. At best you could say it's a weak typing thing, but even then, it doesn't need to be.