Content deleted Content added
m I have added a term which means the same thing in another field (computer science). |
|||
(46 intermediate revisions by 38 users not shown) | |||
Line 1:
{{Short description|Another term for record}}
{{confused|Partitioned data set}}
In [[computer science]] and [[object-oriented programming]], a '''
==Rationale==
==In C++==
A
In
==In Java==
In [[Java (programming language)|Java]], some developers consider that the
Records (introduced in Java 16, in 2021) are shallowly immutable carriers of data without encapsulation, and therefore they can also be considered PDS.
Other structured data representations such as [[XML]] or [[JSON]] can also be used as a PODS if no significant semantic restrictions are used.▼
==In other languages==
==References==▼
In [[PHP]], associative arrays and <code>stdClass</code> objects can be considered PDS.{{citation needed|date=September 2019}}
▲Other structured data representations such as [[XML]] or [[JSON]] can also be used as a
In [[Python (programming language)|Python]], dataclass module provides dataclasses - often used as behaviourless containers for holding data, with options for data validation. The dataclasses in Python, introduced in version 3.7, that provide a convenient way to create a class and store data values. The data classes use to save our repetitive code and provide better readability.<ref>{{cite web | url=https://djtechnews.in/what-are-dataclasses-in-python/ | title=What are Dataclasses in Python? - DJTECHNEWS | date=30 August 2023 }}</ref>
In [[C (programming language)|C]], structs are used in the same manner.
==See also==
* [[Plain
==Notes==
{{notelist}}
▲==References==
{{Reflist}}
[[Category:C++]]
|