PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Dynamic Properties

Dynamic Properties

Dynamic Properties are a 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
disk-output-feature.html 路 dynamic-properties-feature.html 路 letter-first-identifiers-feature.html

View source

PLDB - Build the next great programming language 路 v2022 Day 33 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com