PLDB
Languages Features Calendar About Lists Add Language
GitHub icon

Dynamic Properties

Dynamic Properties

Dynamic Properties are a language feature.

Some OO languages like Python and Javascript allow you to set and access properties on instances at runtime that are not defined in the class definition.

Languages with Dynamic Properties include JavaScript, Python

Example from JavaScript:

class Person {} const person = new Person() person.age = 50

Example from Python:

class Person (object): def __init__(self, name): self.name = name person = Person("John") person.age = 50

Article source

PLDB - Build the next great programming language 路 v2022 Docs Acknowledgements Email GitHub