comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Java and Python have just discovered "record" type finally after 40 years.
Date: Sat, 13 May 2023 10:13:22 +0300	[thread overview]
Message-ID: <kc8rkiF3313U1@mid.individual.net> (raw)
In-Reply-To: <u3mbc2$1oo9l$1@dont-email.me>

On 2023-05-13 0:33, Jeffrey R.Carter wrote:
> On 2023-05-12 19:50, Nasser M. Abbasi wrote:
>>
>> Java 14 now have "Record" !
>>
>> And Python 3.7 now has records, they call it "data class"
>>
>> What took them so long? Pascal and Ada had records
>> from day one, only 40 years ago or so.


Java and Python have classes, which have records as a special case, if 
the term "record" is understood as in most other languages, including Ada.

But it seems that the Java 14 "record" is not quite the same as an Ada 
record, because Java 14 records are meant to be immutable data carriers, 
not mutable data structures. Still, Java 14 records are described as a 
(very) special case of classes.


> Pascal had them in 1970. Algol, I think, had them in 1960.


Algol 60 did not have records, only arrays.

Algol W, a precursor to Pascal, had them in 1966.

Simula had them in 1967. (Wikipedia says "In 1966 C. A. R. Hoare 
introduced the concept of record class construct".)

Algol 68 had them in 1968.

Pascal had them in 1970, as you say.

  reply	other threads:[~2023-05-13  7:13 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-12 17:50 Java and Python have just discovered "record" type finally after 40 years Nasser M. Abbasi
2023-05-12 18:58 ` richardthiebaud
2023-05-12 21:33 ` Jeffrey R.Carter
2023-05-13  7:13   ` Niklas Holsti [this message]
2023-05-13 11:18     ` Luke A. Guest
2023-05-13 16:53       ` Niklas Holsti
2023-05-14  6:46         ` J-P. Rosen
2023-05-14  7:20           ` Nasser M. Abbasi
2023-05-14  9:49             ` Luke A. Guest
2023-05-14  9:43           ` Luke A. Guest
2023-05-14  9:45           ` Luke A. Guest
2023-05-14 10:29           ` Niklas Holsti
2023-05-14 10:37           ` Ben Bacarisse
2023-05-14 10:39           ` Jeffrey R.Carter
2023-05-14 15:10             ` J-P. Rosen
2023-05-14 15:14             ` Ben Bacarisse
2023-05-14 16:56               ` Jeffrey R.Carter
2023-05-15  1:11                 ` Ben Bacarisse
2023-05-15 10:44                   ` Jeffrey R.Carter
2023-05-17  0:24                     ` Ben Bacarisse
2023-05-14 12:46           ` Bill Findlay
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox