Passive data structure: Difference between revisions

Content deleted Content added
Line 16:
Records (introduced in Java 16, in 2021) are shallowly immutable carriers of data without encapsulation, and therefore they can also be considered PDS.
 
<big>Big text</big>==In other languages==
In [[PHP]], associative arrays and stdClass objects can be considered PDS.{{citation needed|date=September 2019}}
 
Line 22:
 
In [[Python (programming language)|Python]], dataclass module provides dataclasses - often used as behaviourless containers for holding data, with options for data validation.
 
In [[C (programming language)|C]], structs are used in the same manner
 
==See also==